Menu Bar commands

S

Simon Davies

XP pro
Access2K

I would like to assign a command ( Select All ) normally
found on the menu bar to a button on my form.
Can I do this using a macro or code ?
Any help gratefully recived.

Thanks in advance

Simon
 
G

Graham Mandeno

Hi Simon

In your button's Click event procedure, put the following line of code:
DoCmd.RunCommand acCmdSelectAll
 
S

Simon Davies

Brilliant , many thanks
-----Original Message-----
Hi Simon

In your button's Click event procedure, put the following line of code:
DoCmd.RunCommand acCmdSelectAll
--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

XP pro
Access2K

I would like to assign a command ( Select All ) normally
found on the menu bar to a button on my form.
Can I do this using a macro or code ?
Any help gratefully recived.

Thanks in advance

Simon


.
 

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