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

iif statement in access query design view

P: 107
field1 bblandscape, wallmart, kmart
field2 4,6,9
field3 5,7,6
field4 12,0,5

if field2 > field3 then field5 = "Yes"
if field4 = 0 then field5 = "Yes"

can I add an if (iif) statement or switch statement to field5 in design view of a query and perform both these conditional statements together in some way. I am not writing the syntax right.
thank you
Apr 13 '08 #1
Share this Question
Share on Google+
2 Replies

P: 8

field5: iif(field4 = 0, "Yes", iif(field2 > field3, "Yes", "No")
Apr 13 '08 #2

P: 107
Thank you
It worked - I used to use alot of conditional statements in vb6 - but I struggle with the different syntax in access
Apr 13 '08 #3

Post your reply

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