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

Help on sql Statement 1

Status
Not open for further replies.

PeterWallace

Programmer
Apr 28, 2003
210
0
0
AU
I have a table something like

Tno as Long
Rego as String
State as string
Front as Boolean

What I would like to know is how can I write SQL so that can
Select Rego , State ...

AND

if Front is True Then want answer as a String "FRONT
If Front is False I want answer as a String "REAR"

Thanks in anticipation
Peter
 
Hi,

Code:
IIF(Front,'Front','Rear')

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
SkipVought

Thank You


I found another solution for the Times when I use for input to a DataReport about 40% of the Time I need

Make the DataFormat Boolean
and Use The OPtions for True and False to Display Answer
Peter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top