Union all not working with null

Joined
Aug 14, 2006
Messages
1
Reaction score
0
I have a database that has been converted from Access 97 to Access 2000. My UNION ALL queries that try to union NULL place holder fields with real data are now giving me "Data type mismatch in criteria expression" errors (they worked fine in 97). The data is boolean in addition to dates.

I would like to know if there is a solution for this without having to change all the queries where I get this error (there are many). I have run a test case where I ended up changing the place holder NULL to 0 (I had to change 5 queries which cascade into the union all query).

Any help or advice is really appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top