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

IIf with Or - Why?

Status
Not open for further replies.
Aug 2, 2000
325
US
Can someone please tell me why this does not work. What would be the correct syntx.

=IIf(Or([DNIS]=2250,[DNIS]=3110),"Lease","Loan")


Any Help would help a heap.

Thanks,

Dave
 
Dave:

I think what you need is:

=IIf([DNIS]=2250 OR [DNIS]=3110,"Lease","Loan")

That should do it.
Larry De Laruelle
larry1de@yahoo.com

 
Access does not have the OR function as does Excel. Compound conditions are handled as Larry has demonstrated above.


Dave
 
Far Out! Groovy! Hip! Solid! Right On!
That worked great!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top