Weird Problem !!! (1 Viewer)

sznsx

Registered User.
Local time
Today, 11:10
Joined
Jul 25, 2004
Messages
20
Hey I am using Access 2000 from Office 2000 and I am having a weird problem! I am adding a button to my form to add code to the On Click event for that button. Everytime I click the button I get the error:

---------------------------------------------------
The expression On Click you entered as the event property setting produced the following error: Invalid outside procedure

* 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, even, or macro.
----------------------------------------------------

Why is this weird? The following is the code for the button

Private Sub myButton_Click()

End Sub

--------------------

After I kept getting this error messege I decided to just take out all my code and see if it still happens, which it does, for EVERY button I add !!! Whats going on ?!?!?
 

mohammadagul

PrinceAtif
Local time
Today, 19:10
Joined
Mar 14, 2004
Messages
298
there might be some declaration in your code. thats keep giving you error.

trying debuggin and compiling your code ... you will knwo where is the problem.

tools
macros
visualbasic editor
debug
compile

hope this would help you
 

Users who are viewing this thread

Top Bottom