Runtime Error: You can't carry out this action at the present time

G

Guest

I have converted an application from Access 97 to Access 2003, and used the
Package & deployment wizard to create the setup. I included the Access
runtime in the setup wizard settings.

When i installed this converted application in a system where there is no
access software, I get this runtime error and the application simply closes.

I observed that the error might be coming in the autoexec macro. I placed
message boxes too in this code to catch the exact point where it fires, but
no msgbox would show up.

Can somebody help me. Thanks in advance.
 
G

Granny Spitz via AccessMonster.com

surya said:
When i installed this converted application in a system where there is no
access software, I get this runtime error and the application simply closes.

If you use the Access runtime version you have to do a lot of extra work,
like apply error handling to all procedures, create custom menus and toolbars,
etc. The error handling is especially important because the application will
crash if you don't provide error handling for runtime errors. Since macros
don't have error handling, these should all be removed from your application.
I observed that the error might be coming in the autoexec macro.

Replace the autoexec macro with an invisible startup form that runs the VBA
code you need to initialize your application. The error handling in that
code will tell you what's failing. You can test the runtime version on your
own computer by using the /runtime commandline switch.
 

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