
Originally Posted by
dutton
Thanks, but but when I plug WHERE ID - 22 MOD 21 = 0 into the Criteria box within Access I get an "Data type in criteria expression" error.
I do have an ID field which is sequential (autonumber)
Access may be getting a little confused. I would try bracketing, i.e.:
Code:
WHERE (([ID] - 22) MOD 21) = 0
I don't have Access on my current machine but did try it in MySQL. Without brackets, it didn't error out but it didn't return any rows either. With the brackets, it worked.
Barb
Bookmarks