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!

Conditional calculations in a query 2

Status
Not open for further replies.

santastefano

Programmer
Aug 9, 2005
54
IT
Is it possible to insert the equivelant of an IF - THEN statement into a query calculation, something like:
If [FieldName]= false then.... else .....
All efforts so far failed.
Thanks in advance for any advice


 
See IIf Function in the help.

IIf(expr, truepart, falsepart)

________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
 
How are ya santastefano . . .

In VBE help have a look at the [blue]IIf[/blue] function . . .

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top