working in older type database that has a field call FeePaid which contains dollars and cents stored as text, and in a strange way. $5.50 is stored as "5.50;0;0;0;0;0;0;0;0". Zero dolars would be stored as "0;0;0;0;0;0;0;0;0". In other words, there are always 16 characters directly to the right of the dollar amount.
In lieu of writing a function that uses a loop to find the length of the dollar amount I tried the following in the QBE grid:
FeePaidNew: Left(FeePaid, Len(FeePaid]-16)
But it gives me a data mismatch error. The problem is in the
"-16". It seems like this should work, and if it did would be a lot easier than writing a function.
Any help or suggestion would be appreciated.
Thanks
jpl
In lieu of writing a function that uses a loop to find the length of the dollar amount I tried the following in the QBE grid:
FeePaidNew: Left(FeePaid, Len(FeePaid]-16)
But it gives me a data mismatch error. The problem is in the
"-16". It seems like this should work, and if it did would be a lot easier than writing a function.
Any help or suggestion would be appreciated.
Thanks
jpl