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

multiple inputs in one unasigned box as criteria for a query

Status
Not open for further replies.

vdzr

Technical User
Mar 6, 2003
42
DE
example,

I made a form with one unasigned inputbox!

I want the User to fil in the different criteria items
Type item1 (enter)
Type item2 (enter)
.
.
.
leave blanc (enter)

the criteria for the query should be like

select* from table
where fielt1 = "'*" & item1 &"*' or '*" & item2 & "*'" ...

who can help me?
 
See thread705-592872 you are using wildcards (*) you would want to use Field1 LIKE ... instead of =.
 
I think there was also a tread that looks after a ";" character to split the variable input? But I can't find it ... sorry

e.g. input = item1;item2;itemn...

results in "like '*" & item1 & "*'" ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top