This is often caused by a filter or sort being applied to the query in
datasheet view and then saving the change to the query layout when the
query is saved.
Next time this happens, try opening the query in SQL view and copying
and pasting the SQL into a new query. If the new query runs without
prompting your for parameters multiple times you can guess that the
query is not the problem, but something that has been done in the
datasheet view is the culprit.
Switch to the "query" view and check the properties of the query and the
fields and see if there is something there to cause the problem.
That said, in almost all cases your users should never see a query in
datasheet view. They should see a form (continuous or otherwise) that
displays the data for manipulation or a report that displays the data
for presentation.
Also, simple parameter prompts are good for testing, but as noted
elsewhere, using a form with comboboxes and textboxes is a better way to
handle this situation.
'====================================================
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'====================================================
Nancy wrote:
> I have several databases with queries run by multiple users. Often they come
> to me to complain that they must re-enter the criteria for a query (which is
> entered at run time) more than once. The only solution I have found is to
> recreate the query. Just copy and pasting it doesn't work.
>
> Can anyone tell me how to correct the problem?
|