User Form Command Button

C

Christmas May

It is my understanding that you can't change the background color of a
command button in Access 2003. Therefore, I've used a label and coded the
MouseDown and MouseUp events to have it behave like a command button. Is
there some way I can assign a "hot key" to this label?

For example, my label is a simple "Exit" button with the "x" underlined by
"E&xit". However, pressing "X" or "Alt-X" doesn't do anything like it would
if it was an actual command button.

Please advise,

Christmas May
 
J

John Spencer

One method would be to set up a button as you normally would.
--set the button's Transparent property to Yes (on the Format Tab)
--Put that button over the top of a label.
-- Either select the label (or create one) and use the menu Format: Send to
Back or Select the Button and use menu Format: Bring to Front so that the
button is on top of the label.

--
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
..
 

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