Question Access 2007 Error MSG Tried every thing .. still no solution !

MartinThe11th

New member
Local time
Today, 14:03
Joined
Nov 13, 2009
Messages
9
TheExpressionOnClick_thumb.jpg


all what i am trying to do , is displaying a msg box when a label is clicked !
Code:
Private Sub Label123_Click() 
MsgBox "TEst" 
End Sub


any Idea what's going on !?

access 2007 / windows 7
 
Is there an event by the same name in a subform?
 
this should work - try compiling the dbs see if there are some errors
 
Perhaps you have some corruption going on. Try importing all of your objects into a brand new ACCDB file. (don't copy and paste, or drag and drop - IMPORT)
 
Perhaps you have some corruption going on. Try importing all of your objects into a brand new ACCDB file. (don't copy and paste, or drag and drop - IMPORT)

did that too , same problem :(
 
Maybe post your database here (remember to compact and repair first and then ZIP the file).
 
That's interesting. What about forms? Is this a form or report?

SHADOW
 
Labels have always had a click event on forms, but Reports have not UNTIL Access 2007.

Indeed. I was mistaken. I was thinking of the labels that get created as a caption for a text box which do not have an event.

SHADOW
 
Indeed. I was mistaken. I was thinking of the labels that get created as a caption for a text box which do not have an event.

SHADOW
Actually, those do have events too. But you have to access them from the VBA window and not through the form's properties window.
 

Users who are viewing this thread

Back
Top Bottom