Associating a label with a button

brett429

Registered User.
Local time
Today, 17:40
Joined
Apr 3, 2008
Messages
114
In Access 07 you can simply Ctrl-click the label and button and it will ask you to associate them, but I can't figure out how to do this with Access 02. When I say "associate," I mean I want the label and button to function as one. When you click the label, the button should automatically depress as well. Thanks!
 
I'll take your word for it that you can associate a label and a command button in 2007, although for the life of me, I can't imagine why you would need/want to, but in earlier versions you'll have to separately call the action from the click event of the label:

Code:
Private Sub YourAssociatedLabel_Click()
  YourCommandButtonName_Click
End Sub
I know of no way to make the command button "depress" when the code is triggered from the label; perhaps someone else does.
 
I'll take your word for it that you can associate a label and a command button in 2007, although for the life of me, I can't imagine why you would need/want to, but in earlier versions you'll have to separately call the action from the click event of the label:

Code:
Private Sub YourAssociatedLabel_Click()
  YourCommandButtonName_Click
End Sub
I know of no way to make the command button "depress" when the code is triggered from the label; perhaps someone else does.

Create a button on the Switchboard using the Switchboard Manager and you'll see what I mean.
 
well i would think that when you create a button, group a lable with it.. create a button, create a lable, select both, go to Format and group

as to making the text change, could you simply put in the Mouse Down event a change of font weight to bold or something...
 
Simple Software Solutions

What you have actually got is an option group that uses buttons at firepoints. Normally people use radar buttons or tick boxes. Option groups allow you to click on the text associated with the radar button. I think this where the confusion originates.

CodeMaster::cool:
 

Users who are viewing this thread

Back
Top Bottom