simulate transaction in access database.

M

Mr. x

I know that access database doesn't have transaction, so I cannot run
several lines, such as :
insert into mytable(col1, col2, ...) values(1,2, ...)
.... folowed by the line
insert into mytable(col1, col2, ...) values(2,3, ...)

I need to run saparately each line.

Is there any tricky way to do good simmulation of transaction, and insert
only whether both inserts succeed ?

Thanks :)
 
C

Cheryl Fischer

Access provides a form of transaction processing with the BeginTrans,
CommitTrans and RollBack methods for DAO in Access (there are also methods
for ADO). You will find much more information and examples in VB Help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top