VBA Breakpoint Set, But Not Hit

M

Mike

Hi. I'm an ASP.NET developer who's trying to work with a Microsoft Access
project. The access .mdb file is 225 meg, and it's a hugh database.

Whenever I set a breakpoint in the code, it never hits. This occurs every
time I insert a breakpoint. I verify that the code executes each time.

For some reason breakpoints don't fire in this application. Could it be
because the file is so large (just guessing on this one)?

Any ideas would be appreciated. Thanks!
 
A

Allen Browne

This might just be a bad setting.

Open the code window, and choose Options from the Tools menu. On the General
tab, make sure Error Trapping is set to "Break on Unhandled Errors", and
Compile On Demand is unchecked.

If that doesn't solve it, make a backup, compact the database, and then
decompile and compact again. To decompile, close Access, and enter something
like this at the command prompt:
"c:\Program Files\Microsoft office\office\msaccess.exe"
/decompile "c:\MyPath\MyDatabase.mdb"
Use the path to where msaccess.exe is found on your computer, and include
the quotes.

More details about recovering a database that's playing up:
http://allenbrowne.com/recover.html
 
M

Mike

Thanks I'll be giving this a try. Thanks again!

Allen Browne said:
This might just be a bad setting.

Open the code window, and choose Options from the Tools menu. On the General
tab, make sure Error Trapping is set to "Break on Unhandled Errors", and
Compile On Demand is unchecked.

If that doesn't solve it, make a backup, compact the database, and then
decompile and compact again. To decompile, close Access, and enter something
like this at the command prompt:
"c:\Program Files\Microsoft office\office\msaccess.exe"
/decompile "c:\MyPath\MyDatabase.mdb"
Use the path to where msaccess.exe is found on your computer, and include
the quotes.

More details about recovering a database that's playing up:
http://allenbrowne.com/recover.html
 
D

Dirk Goldgar

Allen Browne said:
This might just be a bad setting.

Open the code window, and choose Options from the Tools menu. On the
General tab, make sure Error Trapping is set to "Break on Unhandled
Errors", and Compile On Demand is unchecked.


Also look at the startup options (Tools -> Startup... ). The option "Use
Access Special Keys" should be checked.
 

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