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 / Forms Programming / March 2007

Tip: Looking for answers? Try searching our database.

Group a label, textbox and command button?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mscertified - 22 Mar 2007 22:15 GMT
I have a set of 4 labels textboxes and buttons. When a button is pressed, I
want to display a msgbox with the label of the textbox in the title. Is there
any way to associate the button with the label?
Mark A. Sam - 22 Mar 2007 22:19 GMT
Yes, like this:

Private Sub Command127_Click()
   MsgBox "Hello World", , [Label9].Caption
End Sub

>I have a set of 4 labels textboxes and buttons. When a button is pressed, I
> want to display a msgbox with the label of the textbox in the title. Is
> there
> any way to associate the button with the label?
 
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.