Query help (1 Viewer)

rio

Registered User.
Local time
Today, 18:34
Joined
Jun 3, 2008
Messages
124
I make a query with enter the parameter value box ( Parameter Value Box.jpg ). I have to put complete word ( PKAS Petrol 1002 ) or ( PKAS Diesel 1002) to filter the data from table tblProInfo ( View attachment TestQuery.mdb ). Is there any way that i can filter it .... by just insert Petrol or Diesel.
 

vbaInet

AWF VIP
Local time
Today, 11:34
Joined
Jan 22, 2010
Messages
26,374
put an asterisk (*) before and after the word petrol or diesel. That is like this

*petrol* OR
*diesel*
 

rio

Registered User.
Local time
Today, 18:34
Joined
Jun 3, 2008
Messages
124
Thank for suggestion. what i means is parameter value box not criteria box. Query Design.jpg
 
Last edited:

vbaInet

AWF VIP
Local time
Today, 11:34
Joined
Jan 22, 2010
Messages
26,374
Thank for suggestion. what i means is parameter value box not criteria box.


open the query and in the Criteria row of the field you want to perform the search on enter this:

Like '*' & [Enter a Fuel Type] & '*'
 
  • Like
Reactions: rio

rio

Registered User.
Local time
Today, 18:34
Joined
Jun 3, 2008
Messages
124
Thanks....Thanks.....Thanks vbaInet.
Its working as i need.
 

rio

Registered User.
Local time
Today, 18:34
Joined
Jun 3, 2008
Messages
124
hi.. i got a new question... also about the query. Is there another way to make this ... Test.jpg
 

vbaInet

AWF VIP
Local time
Today, 11:34
Joined
Jan 22, 2010
Messages
26,374
An explanation would be good? By the way, if you have paramters on one line in different fields it uses the AND logic.
 

rio

Registered User.
Local time
Today, 18:34
Joined
Jun 3, 2008
Messages
124
Code:
An explanation would be good? By the way, if you have parameters on one line in different fields it uses the AND logic.

Sorry my English not so good... and I don't know how to explain it in word... i think better using picture (make easier to understand)

here I attach the db... so can u show me how to do it.
View attachment TestQuery.mdb
 

Users who are viewing this thread

Top Bottom