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!

Ignore sided if certain condition is met 1

Status
Not open for further replies.

din2005

Programmer
Mar 22, 2005
162
GB
Hi all in my query i have a field called sided

Sided: [Side] & " sided"

Now in the side field it will say left or right or sometimes midline.

However it does not make sense if you put down midline sided. Is there anyway to check if it comes up as midline then do not include sided.

e.g

left sided
right sided
midline
right sided

many thanks

 
How about:
[tt]Sided: [Side] & IIf(Trim([Side] & " ")<>"midline"," sided","")[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top