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!

Standard SQL for IIf

Status
Not open for further replies.

SteveNapper

Technical User
Aug 29, 2002
39
GB
Anyone know an answer to the above?
 
Hi!

You can use the IIf function in SQL, at least in the field definition:

NewfieldName: IIf(YourCondition, ifTrue, ifFalse)

hth
Jeff Bridgham
bridgham@purdue.edu
 
Hi again!

One more thing, what I have above is used in the query design view, in SQL view use:

IIf(YourCondition, ifTrue, ifFalse) As NewFieldName

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top