By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,660 Members | 1,082 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,660 IT Pros & Developers. It's quick & easy.

Is it proper to use Me.Name in module code on a report object?

P: n/a
MLH
The Me object in A97 HELP is associated with forms.

I've used Me.Name with success in a report's Open
event code successfully. However, I seem to recall
occasions where use of Me in report objects could
present problems. Anyone know more about this subject?
Dec 11 '06 #1
Share this Question
Share on Google+
7 Replies


P: n/a
MLH <CR**@NorthState.netwrote in news:dudrn2ludpmrlaic5qc7n9tf35981dbhng@
4ax.com:
The Me object in A97 HELP is associated with forms.

I've used Me.Name with success in a report's Open
event code successfully. However, I seem to recall
occasions where use of Me in report objects could
present problems. Anyone know more about this subject?
Not Me.

--
Lyle Fairfield

http://www.ffdba.com/toyota/BurlingtonToyotaLease.htm

(just a sad story - read if bored)
Dec 11 '06 #2

P: n/a
"MLH" wrote
The Me object in A97 HELP is associated
with forms.

I've used Me.Name with success in a report's
Open event code successfully. However, I
seem to recall occasions where use of Me in
report objects could present problems. Anyone
know more about this subject?
I cannot recall ever having a problem using the "Me" shortcut in a Form's
module, or a Report's module -- but those are the only places it applies.

Larry Linson
Microsoft Access MVP
Dec 11 '06 #3

P: n/a
Nor Me

--

Terry Kreft
"Lyle Fairfield" <ly***********@aim.comwrote in message
news:Xn*********************************@216.221.8 1.119...
MLH <CR**@NorthState.netwrote in
news:dudrn2ludpmrlaic5qc7n9tf35981dbhng@
4ax.com:
The Me object in A97 HELP is associated with forms.

I've used Me.Name with success in a report's Open
event code successfully. However, I seem to recall
occasions where use of Me in report objects could
present problems. Anyone know more about this subject?

Not Me.

--
Lyle Fairfield

http://www.ffdba.com/toyota/BurlingtonToyotaLease.htm

(just a sad story - read if bored)

Dec 12 '06 #4

P: n/a
"Larry Linson" <bo*****@localhost.notwrote in message
news:ggkfh.4641$bj5.3024@trnddc07...
"MLH" wrote
The Me object in A97 HELP is associated
with forms.

I've used Me.Name with success in a report's
Open event code successfully. However, I
seem to recall occasions where use of Me in
report objects could present problems. Anyone
know more about this subject?

I cannot recall ever having a problem using the "Me" shortcut in a Form's
module, or a Report's module -- but those are the only places it applies.
I'm happy to be corrected but I thought that the Me keyword referred to the
current class module and would be available in custom classes.

Keith.
Dec 12 '06 #5

P: n/a
I've never used it that way... perhaps it can be, if you have defined
Properties and/or Methods for the custom class to which you wish to refer.

Larry Linson
Microsoft Access MVP
"Keith Wilby" <he**@there.comwrote in message
news:45**********@glkas0286.greenlnk.net...
"Larry Linson" <bo*****@localhost.notwrote in message
news:ggkfh.4641$bj5.3024@trnddc07...
>"MLH" wrote
The Me object in A97 HELP is associated
with forms.

I've used Me.Name with success in a report's
Open event code successfully. However, I
seem to recall occasions where use of Me in
report objects could present problems. Anyone
know more about this subject?

I cannot recall ever having a problem using the "Me" shortcut in a Form's
module, or a Report's module -- but those are the only places it applies.

I'm happy to be corrected but I thought that the Me keyword referred to
the current class module and would be available in custom classes.

Keith.

Dec 12 '06 #6

P: n/a
"Larry Linson" <bo*****@localhost.notwrote in
news:sgGfh.8252$Q36.8058@trnddc08:
"Keith Wilby" <he**@there.comwrote in message
news:45**********@glkas0286.greenlnk.net...
>"Larry Linson" <bo*****@localhost.notwrote in message
news:ggkfh.4641$bj5.3024@trnddc07...
>>"MLH" wrote

The Me object in A97 HELP is associated
with forms.

I've used Me.Name with success in a report's
Open event code successfully. However, I
seem to recall occasions where use of Me in
report objects could present problems. Anyone
know more about this subject?

I cannot recall ever having a problem using the "Me" shortcut in
a Form's module, or a Report's module -- but those are the only
places it applies.

I'm happy to be corrected but I thought that the Me keyword
referred to the current class module and would be available in
custom classes.

I've never used it that way... perhaps it can be, if you have
defined Properties and/or Methods for the custom class to which
you wish to refer.
Yes, Me refers to the current class module, which can be a form
module, a report module or a standalone class module. I would never
refer to properties or methods of a form/report without the Me
identifier, so I use the same practice in standalone class modules,
using the Me object whenever I want to use one of the methods or
properties of a class module within itself. It seems obvious to me
that this is the most consistent way to code, and that there's a
reason why it works exactly the same in all three contexts.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Dec 13 '06 #7

P: n/a
rkc
Keith Wilby wrote:
"Larry Linson" <bo*****@localhost.notwrote in message
news:ggkfh.4641$bj5.3024@trnddc07...
>>"MLH" wrote

>>>The Me object in A97 HELP is associated
with forms.

I've used Me.Name with success in a report's
Open event code successfully. However, I
seem to recall occasions where use of Me in
report objects could present problems. Anyone
know more about this subject?

I cannot recall ever having a problem using the "Me" shortcut in a Form's
module, or a Report's module -- but those are the only places it applies.


I'm happy to be corrected but I thought that the Me keyword referred to the
current class module and would be available in custom classes.
Correct. Me is simply a way an object can reference itself
in it's own code.

Dec 13 '06 #8

This discussion thread is closed

Replies have been disabled for this discussion.