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

mega search FAQ

Status
Not open for further replies.

Naoko_syd

Technical User
Feb 21, 2017
1
AU
Hi all,

Thank you so much for your all your tips.
I want to use the mega search in FAQ here:
I am wondering if there is any way to search using IF in here:

AddToWhere [Find1], "[CustomerName]", MyCriteria, ArgCount
AddToWhere [Find2], "[City]", MyCriteria, ArgCount

Let's say, if a user wants find what is in [Find2] which may be either in [City] [City2] or [City3], is there a where to do so? One combo box, but search multiple fields...?

Thank you in advance.

Naoko
 
You could write your own search:[tt]
Select [whatever]
From YourTable
Where [City] = [Find2]
Or [City2] = [Find2]
Or [City3] = [Find2][/tt]

Have fun.

---- Andy

There is a great need for a sarcasm font.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top