ToolBar ActiveX control - Access 2002

  • Thread starter Thread starter Vic Spainhower
  • Start date Start date
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
 
Never Mind, I re-did the build event and it now works. I think I copy/pasted
the code to cause the error.
 
Back
Top