Menu Bar commands

  • Thread starter Thread starter Simon Davies
  • Start date Start date
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
 
Hi Simon

In your button's Click event procedure, put the following line of code:
DoCmd.RunCommand acCmdSelectAll
 
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


.
 
Back
Top