Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / February 2008

Tip: Looking for answers? Try searching our database.

User Form Command Button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Christmas May - 29 Feb 2008 12:03 GMT
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
John Spencer - 29 Feb 2008 12:20 GMT
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.

Signature

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

> 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
[quoted text clipped - 10 lines]
>
> Christmas May
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.