Creating a Form for choosing parameters

K

KWhamill

I'm trying to create a form that would allow my Co-workers to run a query
after cherry picking some parameters. The problem is that if i leave any of
the parameters blank it returns no records. I'm thinking of a workaround for
this problem but I can't make it work. Does anyone have a solution that is
simple and neat for the user.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...ea01e0&dg=microsoft.public.access.formscoding
 
J

Jeff Boyce

Once you have the form working, how does your query use the data on the
form?

You might need to modify your query selection criteria to something more
like (untested):
Is Null or Forms!YourForm!YourControl

Good luck

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
K

KARL DEWEY

Use this criteria statement ---
Like [Forms]![YourForm]![TextBox] & "*"
If you do not pick an item it will still pull the records.
 

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