A
atlantis43 via AccessMonster.com
In a procedure, I've been using the following to determine a Val:
DLookup("[fee]", "tblFeeSched", "[CPTCode] = '" & c "' And [year] ='" & y "'
And [PayType] = 0 ").
[PayType] is Text in underlying table, and this code has worked
fine for many years. Suddenly I'm finding that when code runs,
I'm getting msg of "Data type mismatch in criteria expression"
for this line.
If I change code to read " [PayType] = False " then it works OK.
Can anyone explain why my code wants the 'text' datatype to suddenly
change to Boolean? I made no changes to the data in the underlying
table to prompt such action.
TIA, Richard
DLookup("[fee]", "tblFeeSched", "[CPTCode] = '" & c "' And [year] ='" & y "'
And [PayType] = 0 ").
[PayType] is Text in underlying table, and this code has worked
fine for many years. Suddenly I'm finding that when code runs,
I'm getting msg of "Data type mismatch in criteria expression"
for this line.
If I change code to read " [PayType] = False " then it works OK.
Can anyone explain why my code wants the 'text' datatype to suddenly
change to Boolean? I made no changes to the data in the underlying
table to prompt such action.
TIA, Richard