Filter Query multiple field based on text box value

ootkhopdi

Registered User.
Local time
Today, 11:32
Joined
Oct 17, 2013
Messages
181
Hi ..

i want to create a filter query in which fields are

1. Name
2. ID
3. Account

My Form having Textbox is TxtAll

i want to run query where Name or ID or Account Value is equal or like as TxtAll

please tell me solotion soon
 
SELECT [ID], [Name], [Account] FROM yourTable WHERE [NAME] LIKE '*" & Forms!yourFormName!txtAll & "*' OR [Account] LIKE '*" & Forms!yourFormName!txtAll & "*'"
 
thanks for rply

please give me another solution for

i want to use creteria from two or more text box
i want to set as

if textbox 1 is null then creteria is value of textbox2

or if both are null then creteria is value of textbox3

how can i do it

pls give me solution
 

Users who are viewing this thread

Back
Top Bottom