Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does the ODBC driver for access allow .BeginTrans and .CommitTrans?

Status
Not open for further replies.

Paladyr

Programmer
Apr 22, 2001
508
US
I've setup an ADODB.Connection object and am trying to use the .BeginTrans and .CommitTrans methods of this object when executing a command that contains an SQL insert statment. It is giving me an error message saying that the .BeginTrans "Attribute cannot be set now". When I was using DAO, I used DBEngine.BeginTrans and DBEngine.CommitTrans, however I am assuming I can accomplish the same thing by using this method of the Connection object. Is this true, or do I need to create a database object or something like that??
 
Dangit, found my own answer again:

"The Access ODBC driver does not support transactions on a connection that has open Resultsets. The Resultset must be opened and closed within the scope of the transaction."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top