ACC2002: Datasheet View Unexpectedly Runs Stored Procedure (282371)
The information in this article applies to:
This article was previously published under Q282371 Novice: Requires knowledge of the user interface on single-user computers.
This article applies only to a Microsoft Access project (.adp).
SYMPTOMS
In a Microsoft Access project, when you create a stored procedure and open it in Datasheet view, you expect Datasheet view to display the rows that are to be affected when you actually run the stored procedure. Instead, the stored procedure is unexpectedly run.
For example, if you save a Delete query as a stored procedure, you expect Datasheet view to display the rows that will be deleted when the stored procedure is run. Instead, when you attempt to view the query in Datasheet view, the stored procedure is run and the records are deleted.
RESOLUTION
To review the records that will be affected when the stored procedure is run, build the stored procedure as a select query first. Change the stored procedure to an action query after you have verified that the records that will be affected are the correct records.
If you change an action query to a select query, you have to save the select query before you run it. As a result, some properties of the action query, such as the target table name in a make-table query, are no longer present when you switch back to the action query, and you have to specify them again.
Modification Type: | Major | Last Reviewed: | 11/6/2003 |
---|
Keywords: | kbnofix kbprb KB282371 |
---|
|