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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transaction with Access 1

Status
Not open for further replies.

russland

Programmer
Jan 9, 2003
315
CH
Hi, I try to apply a simple BEGIN TRANSACTION to my bunch of queries. but it always returns "Invalid SQL Statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'."

Even this simple query fails respectively return the error msg printed above.

BEGIN TRANSACTION
SELECT * FROM PROJECTS
COMMIT TRANSACTION

Any hint on how to use TRANSACTION in MsAccess is highly appreciated. Thanks

 
Do it in VBA, where BeginTrans, CommitTrans and RollbackTrans are all supported, and can be used to bookend other VBA commands to run your SQL (e.g. CurrentDb.Execute or DoCmd.RunSQL)

[pc2]
 
thanks for that. I'll try. is that for OLEDB or when you choose the MsAccess Driver in your connection string?

However, I'll check if that's supported with ASP.

thanks for now.
 
Alright. nameConn.beginTrans, commitTrans and rollbackTrans did the job.

Thanks a lot. Your surely deserve the star :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top