N
Nocturnal
I've noticed more and more code or various snippets of code which has Me in
it. What does that refer to and how does one use it?
it. What does that refer to and how does one use it?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
So, "me" is simply a shortcut way to reference the current form
that the code is running under. Note that "me" can ONLY be used in
a forms module code, and thus it simply represents the CURRENT
form your code is running under.
Me is a reference to the form or report containing the code.
which the code is stored. That can be attached to a form or report,
or it can be a standalone class module.
David, I understand what you mean, but I'm not sure that
distinction is conceptually useful for the average Access user who
thinks in concrete terms of forms and reports rather than abstract
terrms of instances of classes of objects.
Allen and Albert get my vote! You have to look at the question
asked and how it's asked to get some idea of the level st which
the poster is operating. Obviously, some who asks "What does Me
mean" is a newbie, and the answers really should be geared towards
that. I try to throw in a little theory when appropriate, but not
so much as to drown the original poster.
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.