Question : Access:  If-Then Statements

i'm new to Access...
i need to include a simple if,then statement

if [field] is like "4000*" then return "hello"
else if [field] is like "4010*" then return "bye"
else return "go away"

i can't figure out the syntax for this in the expression builder.

how is this done?

Answer : Access:  If-Then Statements

now nest them:

IIF([field] like "4000*","hello",IIF([field] like "4010*","Bye","Go Away"))
Random Solutions  
 
programming4us programming4us