Launching menu command from code

roypython

Registered User.
Local time
Tomorrow, 04:01
Joined
May 16, 2005
Messages
29
Hello.
Your help is very much appreciated.
I want to launch the "partial replica wizard" from code.
Can it be done?
(It is located in Tools -> Replication ->partial replica wizard

Thank you.
Cheers
Roy
 
Look into using DoCmd.RunCommand as that will give you almost every menu command available on the menus:

DoCmd.RunCommand acCmdPartialReplicaWizard
 
Thank you very much!
 
Look into using DoCmd.RunCommand as that will give you almost every menu command available on the menus:

DoCmd.RunCommand acCmdPartialReplicaWizard

Two points:

1. The Access help for RunCommand recommends using Application.RunCommand instead.

2. This is a version-specific command that did not exist until Access 2002.

--
David W. Fenton
David Fenton Associates
http://dfenton.com/DFA/
 
2. This is a version-specific command that did not exist until Access 2002.
The Application.RunCommand maybe, but the

DoCmd.RunCommand acCmdPartialReplicaWizard

exists in Access 2000.
 
The Application.RunCommand maybe, but the

DoCmd.RunCommand acCmdPartialReplicaWizard

exists in Access 2000.

You're right -- the acCmdPartialReplicaWizard constant is defined as 524. I just couldn't get it to work in A2K for some reason. Thanks for the correction.

It created by Michael Kaplan for A2K, and did not exist before that.

--
David W. Fenton
David Fenton Associates
http://dfenton.com/DFA/
 

Users who are viewing this thread

Back
Top Bottom