Ever Since i began using transactions on a Normalized DB, i have had many issues with "Cannot Update Current Locked by %username% on %machinename%" . What I am doing is using a unbound formand compiling the SQL statement from the form values to update/Insert data into the tables. I am having to compile a few different SQL statements for each table. This is only happening in a multi User environment.
I call a function to compile the SQL statements so they would look like this when they come back
UPDATE REPAIRS SET [Test]='PASS'
UPDATE SHIPPING SET [Ship Date]=#1/1/2003#,etc etc.
I then assign that to a appropriate variable, ShippingSQL ,RepairSQL in this case.
Then i begin my transaction with:
cnn.BeginTrans
cnn.Execute(RepairSQL)
cnn.Execute(ShippingSQL)
cnn.CommitTrans
would it be better to work with a recordset rather than executing SQL commands? Just looking for suggestions here. Im stuck. Thanks A lot.
- Max1mum
Max1mum.
- VBA Programmer
- Studying for MCSD
I call a function to compile the SQL statements so they would look like this when they come back
UPDATE REPAIRS SET [Test]='PASS'
UPDATE SHIPPING SET [Ship Date]=#1/1/2003#,etc etc.
I then assign that to a appropriate variable, ShippingSQL ,RepairSQL in this case.
Then i begin my transaction with:
cnn.BeginTrans
cnn.Execute(RepairSQL)
cnn.Execute(ShippingSQL)
cnn.CommitTrans
would it be better to work with a recordset rather than executing SQL commands? Just looking for suggestions here. Im stuck. Thanks A lot.
- Max1mum
Max1mum.
- VBA Programmer
- Studying for MCSD