Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / December 2007

Tip: Looking for answers? Try searching our database.

Access transaction

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
darwinbaldrich@gmail.com - 19 Dec 2007 18:51 GMT
Hello everybody

I'm trying to find how to know if there is a current transaction
(after using DBEngine.BeginTrans).
Is there a property or function that indicates me that????

Thanks.
Allen Browne - 20 Dec 2007 00:01 GMT
No. AFAIK, DAO does not expose that information to you.

Part of the issue here is that it's not merely a yes/no question. DAO
permits the nesting of transactions to 5 levels.

What most of us do is to set our own flags to indicate whether a transaction
is present or not, and also to use error handling to recover in case the
transaction does not exist.

There's an example here:
   Archive: Move Records to Another Table
at:
   http://allenbrowne.com/ser-37.html
with explanation and discussion of the traps when using transactions. In the
example, the boolean variable bInTrans indicates if a transaction is
present.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> Hello everybody
>
[quoted text clipped - 3 lines]
>
> Thanks.
darwinbaldrich@gmail.com - 20 Dec 2007 19:53 GMT
On 19 déc, 13:51, darwinbaldr...@gmail.com wrote:
> Hello everybody
>
[quoted text clipped - 3 lines]
>
> Thanks.

Ok. I'll implement the counter.
Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.