ToolBar ActiveX control - Access 2002

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
 
V

Vic Spainhower

Never Mind, I re-did the build event and it now works. I think I copy/pasted
the code to cause the error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top