MySQL Forums
Forum List  »  Microsoft Access

committrans or rollbacktrans from access
Posted by: Alain Terranova
Date: September 12, 2005 08:20AM

Hello,

I would like to process a simple tansaction... something like the following code:

Dim conn As ADODB.Connection
Dim rst As ADODB.Recordset

Set conn = New ADODB.Connection
conn.ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" & mysqlSERVER & _
"DB=DB_MAIN_TEST;" & _
mysqlUID & mysqlPASSWORD & mysqlOPTIONS
conn.Open
conn.BeginTrans

conn.Execute "INSERT INTO tbl_phone_nbrs (phone_nbr) VALUES (""043585587"")"

conn.RollbackTrans
conn.Close
Set conn = Nothing


But when a execute the "RollbackTrans" command, I received this error:
"Som non-transctionnal changed talbes couldn't be rolled back"...

What's wrong?

Options: ReplyQuote


Subject
Views
Written By
Posted
committrans or rollbacktrans from access
3067
September 12, 2005 08:20AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.