Public members of objects modules

G

Guest

I have an application in MS Access. I have e Module. One is for GetCurent
UserName and second for OpenFile. When I run it I get this error
"The expression On Open you entered as the event property settings produced
the following error: Constants, fixed-length strings, arrays, user-defined
types and Declare statement not allowed as Public members of objects
modules." If I close this error message than my application runs without
problem.

How can I get out this error?
 
G

Guest

Is it possible you have your module named the same as a function or sub in
the module?
 

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