Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 15th, 2004, 10:27 PM
brianb99999 brianb99999 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 1 brianb99999 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problem edit/update within a transaction

Can't believe I am asking this...
Company I am working for have an old system written in Access 97 VBA (DAO).
In it they start a transaction, modify some fields and end the transaction, we have within this transaction now also directly modified some of the fields (using edit and update) and when run it gets 3003 or 3246 transaction errors.
Does anyone know why we would get these errors (my assumption is you cannot have a transaction open and edit the database at the same time)?
We have a solution (move the edit/update to after the transaction has finished) which is tested and works, but my boss will not let me use it as she considers it a workaround and would prefer to know what the actual problem is.
I have not used DAO in a long time and rarely use transactions, but it is a case of any database activity within the begintrans and commit or rollback is considered part of the transaction?

Thanks,
Brian.

Last edited by brianb99999 : February 15th, 2004 at 10:49 PM.

Reply With Quote
  #2  
Old February 17th, 2004, 09:53 AM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
To my knowledge,Access can't use Trans-act SQL (don't know about 2002). You have to write every statemetn and execute then individually. Use VBA to execute each statement in turn using DAO and use the code to catch errors and backout andy transaction you want to. It won't be easy, (as you have to keep track fo what you have done to back them out) but it is possible (I do it).

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Problem edit/update within a transaction


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway