Adam Caramon
Registered User
- Local time
- , 20:20
- Joined
- Jan 23, 2008
- Messages
- 822
Hi,
I have a query with parameters, which are supplied by a form. User clicks a button on frmMain, frmDialogBox pops up. User enter values in frmDialogBox (specifically OrderID).
In the query, Order ID Criteria is set to Forms!frmDialogBox!cboOrderID. This works as expected.
However, I want to be able to have the user select a specific Order ID, or select no ID, thus returning ALL records.
What criteria would I use to accomplish this? I've tried setting criteria to "*" or "Like *", but that does not work. I also tried using a function to return the * value, and that also does not work.
Essentially I am trying to make it where, if a criteria is selected by the user, use that criteria. If no criteria is selected, don't apply any criteria to the query.
Is this possible? If not, suggested work around?
Thanks
I have a query with parameters, which are supplied by a form. User clicks a button on frmMain, frmDialogBox pops up. User enter values in frmDialogBox (specifically OrderID).
In the query, Order ID Criteria is set to Forms!frmDialogBox!cboOrderID. This works as expected.
However, I want to be able to have the user select a specific Order ID, or select no ID, thus returning ALL records.
What criteria would I use to accomplish this? I've tried setting criteria to "*" or "Like *", but that does not work. I also tried using a function to return the * value, and that also does not work.
Essentially I am trying to make it where, if a criteria is selected by the user, use that criteria. If no criteria is selected, don't apply any criteria to the query.
Is this possible? If not, suggested work around?
Thanks