yronium Level: Moderator

 Registered: 14-04-2002 Posts: 907
|
Re: Open/Close/Lock Access DBase
Maybe this won't match your probs, but I just give this hint to mind about.
In Access VBA are avaliable the BeginTrans, CommitTrans and Rollback methods, to manage a transaction. You can start a transaction if you want to avoid that several users make changes to a certain record at the same time, as this could generate a data-error. Also a transaction can protect data if the connection have an unexpected breakdown before finish the record editing process.
Example: you go to your bank to put some money, and there are four steps: you give the money to the cash employee, he prints the receipt, the program records the operation and finally updates the amount in your account. Now, imagine a power breakdown between the third and the fourth passage! A transaction blocks the database (BeginTrans), make all the changes and, when finished with no errors, saves the changes in the record (CommitTrans), and finally releases the database for other users.
You can study about transactions. I recently knew that SQL has BeginTrans, CommitTrans and Rollback, too.
Hope it helps.
____________________________
Real Programmer can count up to 1024 on his fingers
|