Connecting Tech Pros Worldwide Help | Site Map

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

  #1  
Old December 11th, 2006, 07:35 PM
MLH
Guest
 
Posts: n/a
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?
  #2  
Old December 11th, 2006, 08:05 PM
Lyle Fairfield
Guest
 
Posts: n/a

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


MLH <CRCI@NorthState.netwrote in news:dudrn2ludpmrlaic5qc7n9tf35981dbhng@
4ax.com:
Quote:
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)
  #3  
Old December 11th, 2006, 09:15 PM
Larry Linson
Guest
 
Posts: n/a

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


"MLH" wrote
Quote:
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


  #4  
Old December 12th, 2006, 02:15 PM
Terry Kreft
Guest
 
Posts: n/a

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


Nor Me

--

Terry Kreft


"Lyle Fairfield" <lylefairfield@aim.comwrote in message
news:Xns98969CCA19447lylefairfieldaimcom@216.221.8 1.119...
Quote:
MLH <CRCI@NorthState.netwrote in
news:dudrn2ludpmrlaic5qc7n9tf35981dbhng@
Quote:
4ax.com:
>
Quote:
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)

  #5  
Old December 12th, 2006, 02:35 PM
Keith Wilby
Guest
 
Posts: n/a

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


"Larry Linson" <bouncer@localhost.notwrote in message
news:ggkfh.4641$bj5.3024@trnddc07...
Quote:
"MLH" wrote
>
Quote:
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.


  #6  
Old December 12th, 2006, 10:25 PM
Larry Linson
Guest
 
Posts: n/a

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


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" <here@there.comwrote in message
news:457ec010$1_1@glkas0286.greenlnk.net...
Quote:
"Larry Linson" <bouncer@localhost.notwrote in message
news:ggkfh.4641$bj5.3024@trnddc07...
Quote:
>"MLH" wrote
>>
Quote:
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.
>

  #7  
Old December 13th, 2006, 01:45 AM
David W. Fenton
Guest
 
Posts: n/a

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


"Larry Linson" <bouncer@localhost.notwrote in
news:sgGfh.8252$Q36.8058@trnddc08:
Quote:
"Keith Wilby" <here@there.comwrote in message
news:457ec010$1_1@glkas0286.greenlnk.net...
Quote:
>"Larry Linson" <bouncer@localhost.notwrote in message
>news:ggkfh.4641$bj5.3024@trnddc07...
Quote:
>>"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/
  #8  
Old December 13th, 2006, 01:55 AM
rkc
Guest
 
Posts: n/a

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


Keith Wilby wrote:
Quote:
"Larry Linson" <bouncer@localhost.notwrote in message
news:ggkfh.4641$bj5.3024@trnddc07...
>
Quote:
>>"MLH" wrote
>>
>>
Quote:
>>>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.

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB FAQs (Interview Questions) lot lot shamirza answers 14 January 23rd, 2007 11:25 AM
compiling perl 5.8.7 on Solaris 8 Kirt Loki Dankmyer answers 0 November 22nd, 2005 04:05 AM
Error Trapping In Access 2000 Peter Frost answers 6 November 12th, 2005 11:14 PM
Error Trapping In Access 2000 Peter Frost answers 6 November 12th, 2005 10:50 PM