By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,226 Members | 1,435 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,226 IT Pros & Developers. It's quick & easy.

Update query

P: 38
Hi All,
I have an Update query that updates bunch of fields in tableA from another tableB. For one of the fields (a Date field) in tableA I woud like it to be updated only with a non null value, meaning if the new value from tableB is null, do not update. I tried to use under 'Update to' the following expression:
Expand|Select|Wrap|Line Numbers
  1. IIF(tableB.date1 Is Not Null, tableB.date1) 
but it didn't work. Any ideas?

Jan 23 '08 #1
Share this Question
Share on Google+
1 Reply

P: 38
Disregard, I figured it out:

Expand|Select|Wrap|Line Numbers
  1. IIF(tableB.date1 Is Not Null, tableB.date1, tableA.oldDate)
Jan 23 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.