I just started learning about and trying my hand at using BeginTrans, CommitTrans & the Rollback methods.....and they seem to work really nice. What I notice though is when I force an error and the rollback occurs, the autonumber still triggers in one of my tables.
None of the data was entered as a result....which is a good thing, but the next time I run the query, without forcing an error, I notice that I skip a number in the autonumber field.
I think it's related to the .update occurring in my code in the first table, but before the error is forced on the second table that I'm updating. But like I say, the data never went into the table....at least as far as I could tell.
Is there a way to prevent the autonumber from triggering?
It prevented partial updates to some of the tables in the event of an error, which is the most important thing, and it's not really a big deal....I would just prefer to prevent it from happening if there's something else I can or should be doing. (Perfectionist Phobia!)
Thanks...Toga
None of the data was entered as a result....which is a good thing, but the next time I run the query, without forcing an error, I notice that I skip a number in the autonumber field.
I think it's related to the .update occurring in my code in the first table, but before the error is forced on the second table that I'm updating. But like I say, the data never went into the table....at least as far as I could tell.
Is there a way to prevent the autonumber from triggering?
It prevented partial updates to some of the tables in the event of an error, which is the most important thing, and it's not really a big deal....I would just prefer to prevent it from happening if there's something else I can or should be doing. (Perfectionist Phobia!)
Thanks...Toga