Solved

Microsoft Access 2003

Posted on 2013-01-22
9
338 Views
Last Modified: 2013-01-23
I have an unusual problem -- when a client opens their application and migrates to a different menu -- it opens to a VBA window and breaks on a line but is not erroring out. I can step on from the line and the rest of the code runs fine. Once this happens, the client can navigate to all menus with no problem.

I have cleared all break-points and compacted and repaired the application and it persists.
0
Comment
Question by:Ei0914
9 Comments
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
I've seen this happen occasionally.
Almost always cleared by rebooting the system.

mx
0
 
LVL 10

Expert Comment

by:Anthony Berenguel
Comment Utility
mx, do you know what causes this behavior?
0
 
LVL 65

Accepted Solution

by:
Jim Horn earned 167 total points
Comment Utility
I've had this happen a couple of times, and I vaguely remember it being from stop/breakpoints that were once there, but removed by the developer, but for some reason Access believes they are still there.  I was able to resolve this by deleting the lines in the area.

How it worked or why it happens in the first place?  No idea.

btw, 'Microsoft Access 2003' as a subject line doesn't work real well, as it doesn't describe your question.  'VBA breaks without a stop or breakpoint' would be better.
0
 

Author Comment

by:Ei0914
Comment Utility
jimhorn -- you're absolutely right. Thanks for the reminder.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
"mx, do you know what causes this behavior?"

Well ... sort of.  Something literally gets 'stuck'.  Maybe a previous break point or error line.
It maybe happens to me 1x/year if that.
0
 
LVL 119

Assisted Solution

by:Rey Obrero
Rey Obrero earned 167 total points
Comment Utility
try decompiling your db, then compile, compact and repair

see this link

http://www.granite.ab.ca/access/decompile.htm
0
 
LVL 10

Assisted Solution

by:LukeChung-FMS
LukeChung-FMS earned 166 total points
Comment Utility
It could be the Error Trapping setting on that machine. Error Trapping is set at the machine level, not the application, so you need to make sure you set it properly when your application starts. Are you raising errors in your classes?

Anyway, this is discussed in my paper Error Handling and Debugging Tips and Techniques for Microsoft Access, VBA, and Visual Basic 6 (VB6) which was also published on MSDN:
http://www.fmsinc.com/tpapers/vbacode/Debug.asp#BasicErrorHandling

It's part of our Microsoft Access Developer Help Center: http://www.fmsinc.com/MicrosoftAccess/developer/index.html

Hope this helps.
0
 

Author Closing Comment

by:Ei0914
Comment Utility
Tried all of the above and wound up creating a new application, yanking everything in and got rid of it that way... I do believe that all of the above could and should have fixed it.

Those nasty little Microsoft gremlins can be a pain in the a@@.

Thanks again Experts!

Best, Eileen
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
"Tried all of the above and wound up creating a new application,"
Did you try rebooting your system as I suggested?
I've never seen that not work ?

Also, it appears that you did not really use any of the solutions posted ...?

mx
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now