Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Running into ERROR 3003
James Hopkins 
     
2 years ago
Hey Richard and the Guys, I have been seeing an Runtime Error when my Code is ran. I trying to figure out where I going wrong at
James Hopkins OP  @Reply  
     
2 years ago

James Hopkins OP  @Reply  
     
2 years ago

James Hopkins OP  @Reply  
     
2 years ago

John Davy  @Reply  
          
2 years ago
Is it Dimmed?
John Davy  @Reply  
          
2 years ago
Hi James
After Googling the error -
"We see it in situations where someone is trying to sequentially run a large number of Reports, or likewise run a series of complex Queries, where each Query (excepting the initial one) is based on the previously run Query. In a situation like

Code:
DoCmd.OpenQuery "QueryA"
DoCmd.OpenQuery "QueryB"
DoCmd.OpenQuery "QueryC"
the problem can be resolved using the DoEvents Command.
Code:
DoCmd.OpenQuery "QueryA"
DoEvents
DoCmd.OpenQuery "QueryB"
DoEvents
DoCmd.OpenQuery "QueryC"
DoEvents returns control to Windows, allowing QueryA to complete running before starting to run QueryB. It then allows QueryB to finish running before starting QueryC. You might want to try breaking up your code by using it at strategic points. Having no experience with transactions, I can't really tell you where to insert it, but perhaps inserting it between each transaction might do it. So play around with it and see what happens."

john

James Hopkins OP  @Reply  
     
2 years ago
Hey John, it is Dim as DAO.Recordset.
Kevin Yip  @Reply  
     
2 years ago
The error says "too many transactions being nested." Maybe you're using too many BeginTrans, CommitTrans, Rollback, etc. within one another.
John Davy  @Reply  
          
2 years ago
Hey James
Didn't see it in screen clip!
John
James Hopkins OP  @Reply  
     
2 years ago

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Developer Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 12:41:13 PM. PLT: 0s