Open debug window from code

FLM

Registered User.
Local time
Today, 04:39
Joined
Aug 9, 2006
Messages
21
Hi,

Is it possible to open the debug window from code.
In my startup options, i blocked the ctrl + g to open the debug window.

Now i want a command button with code to be able to open the debug window after i type in the correct password.

What code do i have to use?

Frank
 
To open de debug window use:
DoCmd.RunCommand acCmdDebugWindow;
or to open the VBA editor:
DoCmd.RunCommand acCmdVisualBasicEditor.
 
PeterF said:
To open de debug window use:
DoCmd.RunCommand acCmdDebugWindow;
or to open the VBA editor:
DoCmd.RunCommand acCmdVisualBasicEditor.

Thank you Peter
 
PeterF said:
DoCmd.RunCommand acCmdVisualBasicEditor

The runcommand acCmdVisualBasicEditor only works in XP and higher.
I'm stuck with access2000.
But the runcommand acCmdDebugWindow works perfect.
 

Users who are viewing this thread

Back
Top Bottom