Joined: 19 Jun 2007
Location: United States
Online Status: Offline
Posts: 432
Posted: 04 May 2012 at 4:08am
If your VocherPrint.YearsRef is a number or date datatype you will get this error. Make sure you convert it to a string. You can use: CStr{VocherPrint.YearsRef}) or
ToText({VocherPrint.YearsRef}) in your Mid function
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Posted: 04 May 2012 at 5:59am
I am guessing that YearsRef is either a date or a number, Mid only works on strings...so as John gave, you need to convert your number/date to a string.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum