Query from form

T

Ty

How can I create a query that runs through multiple
fields of a form, but does not require each field to
contain information for the search. Each time I try to
make the query, it comes up empty because I do not enter
information in every field. I want to be able to click
search after entering all the information I want to
search for, and the query pull up records with the
information I am looking for. Does that make since?
 
M

[MVP] S. Clark

WHERE field1 LIKE "*" & forms!frmName!txtField1 AND ...

--
HTH,

Steve Clark, Access MVP
FMS, Inc.
Professional Solutions Group
http://www.FMSInc.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Is your Access database too slow?
Are you ready to upgrade to SQL Server?
Contact us for optimization and/or upsizing!
http://www.FMSInc.com/consulting
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top