|
|
Question : Query Update Runs Automatically
|
|
I'm having trouble with a function of the update queries in Access. Specifically, when running an update query, it updates the items from the query even if I select "NO - I do not want to proceed with the update" when the prompt comes up. Normally when you select NO at this point it does not update the items. But for some reason it now runs the updates regardless of whether you have OK'd it by selecting YES - run update or not. The option of not running an update (normal) is critical to the work we do. the databases where I'm having this problems are so far only on two databases that are both located here in the same folder.
|
Answer : Query Update Runs Automatically
|
|
An update query runs within a transaction. When you select [No] the transaction is rolled back. I see only two ways to mess with the data in that case:
* Your update query calls VB to perform additional editing outside of the transaction (this is a very bad practice, but I've seen it before)
* You are running a series of queries from VB and canceling the first does not cancel subsequent queries (or previous queries have already run at that time).
But I can assure you that an action query run from the interface will allow you to roll back completely (or accept the partial update, without the records where an error was encountered).
(°v°)
|
|
|
|