Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I got this error when call the button click event in the ms access VBA.

The expression OnClick you entered as the event property setting produced the following error:
The expression you entered has a name that Microsoft Office cannot find.
* The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure].
* There may have been an error evaluating the function, event or macro.


My code is like this

VB
Private Sub Button1_Click()
MsgBox "HI"
End Sub


I cant find the solution..
can any one help me...
Posted
Updated 7-Jun-20 14:40pm

1 solution

Check references to MS Office Object Library.
 
Share this answer
 
Comments
Soft009 12-Aug-11 2:54am    
thnx..
now it is working... :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900