ACC2002: Parameter Prompt Appears Twice When You Run a Query (287432)
The information in this article applies to:
This article was previously published under Q287432 For a Microsoft Access 2000 version of this article, see 245467.
Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
When you run a parameterized query, you receive two prompts for each parameter that is defined in the query.
CAUSE
Sorting has been applied to the query in Datasheet view rather than in Design view.
RESOLUTION
To correct a query in this state, clear the OrderBy property in the property sheet in Design view of the query. To clear the OrderBy property of the query, follow these steps:
- Open the query in Design view.
- Click any empty space in the top pane of the query. Do not click on a table or a field.
- On the View menu, click Properties.
- Clear the OrderBy property in the property sheet.
- Save the query, and then close it.
To prevent this behavior from occurring in new queries, be sure to apply sorting to the fields of a query in Design view by using the Sort row in the query design grid.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 11/6/2003 |
---|
Keywords: | kbbug kbnofix KB287432 |
---|
|