Good morning everyone,
I'm getting Data type mismatch in criteria expression on a VBA that I'm using, I'm not the author, it was working fine until upgrade from office 2013 to 365.
The code:
Using debug.pring I know that second sql string results in this:
If my understanding is correct the error comes from 1904 value that is numeric in sql while Mtbl_02_Recharge_FixedAmounts.[YYMM Last month of Fixed Amount] is stored as short text.
I tried to modify like this:
But it makes no difference. I'm not so good with VBA in access, I don't think I can solve it on my own, please help!
Bookmarks