L
Louis
Hi
I have an access frontend with mysql backend.
MySQL has a transaction feature - where the whole sql run can be voided if
one part fails. My VBA code is as follows : -
Dim cnn As ADODB.Connection
Set cnn = New ADODB.Connection
cnn.CursorLocation = adUseClient
cnn.Open sqller
cnn.Execute(sql) - This is an insert statement
cnn.Execute(sqla) - This is an update statement
cnn.Close
Set cnn = Nothing
Should i concat sql and sqla to one sql run with a ; after the first
statement. Will this allow me to then use the transaction feature of mysql ?
Or is there another way i can do it in access ?
I have an access frontend with mysql backend.
MySQL has a transaction feature - where the whole sql run can be voided if
one part fails. My VBA code is as follows : -
Dim cnn As ADODB.Connection
Set cnn = New ADODB.Connection
cnn.CursorLocation = adUseClient
cnn.Open sqller
cnn.Execute(sql) - This is an insert statement
cnn.Execute(sqla) - This is an update statement
cnn.Close
Set cnn = Nothing
Should i concat sql and sqla to one sql run with a ; after the first
statement. Will this allow me to then use the transaction feature of mysql ?
Or is there another way i can do it in access ?