Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If Then statements

Status
Not open for further replies.

QHRider

Technical User
Apr 29, 2000
3
US
I need to develop IIf Then statements, something like this:

IIf Question 1 = Yes, then go to Page Number. Else IIf Question 1 = No go to Dropdown.

Any help would be greatly appreciated.

Thanks,
QHRider
 
IIf(Expression, TruePart, FalsePart)

so if you can have just Yes or No to your Question 1, then:
[tt]
IIf (Question 1 = Yes, go to Page Number, go to Dropdown)[/tt]

Have fun.

---- Andy
 
QHRider,
Where do you intend to use the statement?

Code:
If [Your Expression] = SomeValue Then
    [COLOR=#4E9A06]'use statements here for True[/color]
  Else
    [COLOR=#4E9A06]'use statements here for False[/color]
End If

Typically IIf() is used as a function that returns a single value.

Duane
Hook'D on Access
MS Access MVP
 
Andy and Duane,

Thank you very much for your input. I'll give them a try.

QHRider
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top