I changed some fields in the back-end Access database (2000) from Currency data type to Decimal (18,2), and then I got an error "Type Mismatch," at the line of the code
if a=-99 then
Variable a is the calculation result from some variables taking value from Decimal fields.
If I change the code to
if cint(a)=-99 then
There is no error. But I would rather change field types back to Currency.
I know Decimal Data Type has some problem in Access, from Microsoft's Knowledge Base article 837148
Is this an Access database problem or VBScript problem?
Seaport
if a=-99 then
Variable a is the calculation result from some variables taking value from Decimal fields.
If I change the code to
if cint(a)=-99 then
There is no error. But I would rather change field types back to Currency.
I know Decimal Data Type has some problem in Access, from Microsoft's Knowledge Base article 837148
Is this an Access database problem or VBScript problem?
Seaport