Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 11th, 2006, 07:35 PM
MLH
Guest
 
Posts: n/a
Default Is it proper to use Me.Name in module code on a report object?

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
Default 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
Default 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
Default 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
Default 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
Default 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
Default 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
Default 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.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles