-
iif in query
I'd like to write an if statement where a parameter result updates a field. I will try to explain:
if ([would you like to update the field?] == "yes") then it updates it.
-
you dont ask this in the query. do it in code:
if msgbox("Update the field",vbyesNo,"confirm") = vbYes then docmd.openquery "quUpdQry"
...unless you are actually updating that field to yes/no or other:
update table set [yesNoFld]= [Update this field]
then the field will get the reply the user enters.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules