Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about Me Object 1

Status
Not open for further replies.

gbraden

MIS
Jan 24, 2002
129
US
Could someone forgive my newness to programing in Access and give me the primer on the Me Object? When I play with sample code that include Me.something it complains that the Me object is not defined. Is "Me" a symbolic like "FOO"?


 
It's like saying Forms!TheFormThatImInRightThisMinute JHall
 
The ME shorthand refers to the currently active object. It is a very useful shorthand reference, but will only be so in a FORM or a REPORT.

IOW, if you use "ME" in a standard module without passing it a reference so it knows what "ME" you're talking about, it won't work.

So this line:
Code:
Debug.print Me.Name

will work fine if it is in a class module on a form or a report, but will give you an error if it is in a standard module.


Jim Hare
"Remember, you're unique - just like everonone else"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top