I want to have two fields prompted to the user for an optional filtering of data. When I use the format for one field, everything is OK. But when I try to add a second field using the same technique, I get blank results unless put a value in each of the parameter prompts. How can I use the parameter prompt with both fields?
Here is the answer to my question for one field from Microsoft Access Help:
I want the option of returning all records with a parameter query.
In the design grid under the field that contains the prompt in the Criteria cell, type [prompt] Is Null in the Or cell, where prompt is the same prompt that is in the Criteria cell for that field. For example, in the CategoryID field:
In this cell Type
Criteria Like [Enter Category ID:]
Or [Enter Category ID:] Is Null
Now when you run the query, if you leave the Enter Parameter Value dialog box blank, the query returns all records.
If I try to get a prompt on Units and Volume, I have to make an entry into BOTH prompts or my results are squirrelly? I prefer not having to make my users enter 1 or 0 into the prompts.
Bryan Meek
bmeek@adelphia.net
Here is the answer to my question for one field from Microsoft Access Help:
I want the option of returning all records with a parameter query.
In the design grid under the field that contains the prompt in the Criteria cell, type [prompt] Is Null in the Or cell, where prompt is the same prompt that is in the Criteria cell for that field. For example, in the CategoryID field:
In this cell Type
Criteria Like [Enter Category ID:]
Or [Enter Category ID:] Is Null
Now when you run the query, if you leave the Enter Parameter Value dialog box blank, the query returns all records.
If I try to get a prompt on Units and Volume, I have to make an entry into BOTH prompts or my results are squirrelly? I prefer not having to make my users enter 1 or 0 into the prompts.
Bryan Meek
bmeek@adelphia.net