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

HELP w/ SQL!

Status
Not open for further replies.

Nick34

Technical User
Oct 16, 2003
50
US
Does anyone know why this statement will not work in the WHERE statement of my query???

Choose([1=Low Load; 2=Mid Load; 3=High Load],Between 50 And 190.4,Between 190.4 And 330.8,Between 330.8 And 518)

I can't figure it out.

Thanks.
 
Maybe?!? the last "ending" = the next "begin"
Between 50 And 190.4[\b],
Between 190.4[\b] And 330.8,
Between 330.8 And 518


jb

 
I just tried your suggestion and it was a no go. It works without the choose statement i.e., between 50 and 190.4.
 
Go in the SQL pane and amend your where clause like this:
WHERE
(([1=Low Load; 2=Mid Load; 3=High Load]=1 And [FieldName] Between 50 And 190.4)
OR
([1=Low Load; 2=Mid Load; 3=High Load]=2 And [FieldName] Between 190.4 And 330.8)
OR
([1=Low Load; 2=Mid Load; 3=High Load]=2 And [FieldName] Between 330.8 And 518))

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top