ACC2002: Parameter Dialog Box Appears When You Run a Pasted Query (298877)
The information in this article applies to:
This article was previously published under Q298877 Novice: Requires knowledge of the user interface on single-user computers.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
When you run a query that was created by pasting a copy of another query, you receive an Enter Parameter Value dialog box for QueryName.FieldName.
CAUSE
You sorted the original query by using the Sort Ascending or Sort Descending commands in Datasheet view.
RESOLUTION
Open the newly pasted query in Design view, and then change the OrderBy property to reference the new query's name. Or, simply clear the OrderBy property.
To prevent the problem from occurring in the future, apply sorting in Design view of the query by using the query design grid. This causes the SQL statement of the query to include the proper ORDER BY clause that will work correctly if the query is copied and pasted.
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: | 9/27/2003 |
---|
Keywords: | kbbug kbnofix KB298877 |
---|
|