Thread: Chapter 10
View Single Post
  #2 (permalink)  
Old January 22nd, 2006, 09:41 AM
Damien Damien is offline
Registered User
Join Date: Jan 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Denise got it right from what I can see - You've just doena couple of Typos !

You have at the top : Dim btnButton As CommandButton

You should have : Dim btnButton As CommandBarButton

You have towards the end :
btnButton.OnClick = "DisplayMessage"
You Should have :
btnButton.OnAction = "DisplayMessage"

You may also need to make a reference to Microsoft Office 10.0 - or 11.0 or whatever you have in the Tools references - I've seen some Access set ups that don't have this ticked automatically

Hope this helps

Reply With Quote