VIC CRM for small business.
The type mismatch is caused by using doc.PostedDate(0) in string concatenation.