Macro to open a toolbar command

J

JimAA

I would like to open the "File...Get External Data...Import..." toolbar
commands with one click on a command button in a form. How do I create a
macro to do that?
Thanks,
JimAA
 
S

Stephen English

Jim
This is what you need I think. Just put it in the click event of the
button on your form
DoCmd.RunCommand acCmdImport
REgards
Stephen
 
S

Steve Schapel

Jim,

Use the RunCommand action in your macro, and in the Command argument
enter Import. Save this macro, and assign on the Click event of your
command button.
 

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