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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

(IIF(OR Statement? 1

Status
Not open for further replies.
Apr 26, 2004
87
US
I can't get this to work?

=IIf(OR([Sub Name]="DEMO",([Sub Name 2]="DEMO"),0,[SUB 2 $]))

is my or statement wrong?

MCSE 2K - MCSA 2K - NET+ - A+

Paul..
 
Access doesn't use the And() and Or() expressions the way Excel does. The correct syntax for the above expression for Access should be:
[tt]
=IIf([Sub Name]="DEMO" Or [Sub Name 2]="DEMO",0,[SUB 2 $])
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top