V
Vic Spainhower
Hello,
I am trying to use the ToolBar ActiveX control on an Access 2002 form. The
Button_Click event causes it to fail with the message "Procedure declaration
does not match procedure of event ..." when I insert the code. Does this
control work in Access? I've used this in VB6 but never in Access. There is
a ToolBar_Click event but I don't know if there is a way to determine the
button pressed.
Private Sub toolbar9_ButtonClick(ByVal Button As Button)
'
'Use the Key property with the SelectCase statement to specify
'an action.
Select Case Button.Key
Case "Points"
MsgBox "You pressed the points key"
End Select
'End Sub
Vic
I am trying to use the ToolBar ActiveX control on an Access 2002 form. The
Button_Click event causes it to fail with the message "Procedure declaration
does not match procedure of event ..." when I insert the code. Does this
control work in Access? I've used this in VB6 but never in Access. There is
a ToolBar_Click event but I don't know if there is a way to determine the
button pressed.
Private Sub toolbar9_ButtonClick(ByVal Button As Button)
'
'Use the Key property with the SelectCase statement to specify
'an action.
Select Case Button.Key
Case "Points"
MsgBox "You pressed the points key"
End Select
'End Sub
Vic