alktrigger
Aimless Extraordinaire
- Local time
- Today, 17:12
- Joined
- Jun 9, 2009
- Messages
- 124
I have a set of queries that dump into a table, but a recent change has them leaving blanks (instead of 0's). I'm trying to create an update query that will sort through the numbers (and blanks) and place a 0 (zero) in the columns that currently have no contents. I'm experimenting with an update query, but it is giving me an error "Data type mismatch in criteria expression" which leads me to believe that using the <> "" (not equal to null) is causing the problem. SQL looks as following:
Where the values in Wk1 are numerical
Any suggestions to different criteria?
Code:
UPDATE tblReport1 SET tblReport1.Wk1 = 0,...
WHERE (((tblReport1.Name)<>"") AND ( ((tblReport1.Wk1)<>"") OR ((tblReport1.Wk2)<>"") OR ...
Any suggestions to different criteria?