473,406 Members | 2,849 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

The meaning of "Me!"

HI:

I see the term "Me!" in a lot of Access statements, bit don't quite know what it means. In
the same contexts as wondering what the meaning if "is" is, I wonder what the meaning of
"Me!" is.

Can someone enlighten me?

Regards

John Baker
Nov 12 '05 #1
7 27152
John,

"Me" is the reference to the active form.

Some examples:
You can refer to the textbox on the form bound to the Customername field with
Me!Customer.
You can requery the form with Me.Requery
You can make the form not visible with Me.Visible = False

The key to using "Me" is that the form has to be the acyive object at the point
"Me" is used.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com

"John Baker" <Ba******@Verizon.net> wrote in message
news:et********************************@4ax.com...
HI:

I see the term "Me!" in a lot of Access statements, bit don't quite know what it means. In the same contexts as wondering what the meaning if "is" is, I wonder what the meaning of "Me!" is.

Can someone enlighten me?

Regards

John Baker

Nov 12 '05 #2
Steve:

Thank you.

John

"Steve" <sp**@nospam.com> wrote:
John,

"Me" is the reference to the active form.

Some examples:
You can refer to the textbox on the form bound to the Customername field with
Me!Customer.
You can requery the form with Me.Requery
You can make the form not visible with Me.Visible = False

The key to using "Me" is that the form has to be the acyive object at the point
"Me" is used.


Nov 12 '05 #3
RE/
I see the term "Me!" in a lot of Access statements, bit don't quite know what it means. In
the same contexts as wondering what the meaning if "is" is, I wonder what the meaning of
"Me!" is.

Can someone enlighten me?


It says that what comes after the exclaimation point is an object on the same
form that the code resides in.

You can also use Me. The dot notation has a couple of advantages:

1) Autocompletion. As soon as you type the dot, you get a popup list of
available objects.

2) Avoidence of runtime errors. If you misspell a name using dot notation, the
compiler will catch it. With the exclaimation point, it compiles but fails
when that line of code tries to execute.
--
PeteCresswell
Nov 12 '05 #4
On Sat, 13 Dec 2003 13:41:17 GMT, Steve wrote:
"Me" is the reference to the active form.


.... and report.

Peter

--
No mails please.
Nov 12 '05 #5
"Peter Doering" <no****@doering.org> wrote...
On Sat, 13 Dec 2003 13:41:17 GMT, Steve wrote:
"Me" is the reference to the active form.


... and report.


....and class.
--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.

Nov 12 '05 #6
x@y.z ((Pete Cresswell)) wrote in
<ia********************************@4ax.com>:
RE/
I see the term "Me!" in a lot of Access statements, bit don't
quite know what it means. In the same contexts as wondering what
the meaning if "is" is, I wonder what the meaning of "Me!" is.

Can someone enlighten me?
It says that what comes after the exclaimation point is an object
on the same form that the code resides in.

You can also use Me. The dot notation has a couple of
advantages:

1) Autocompletion. As soon as you type the dot, you get a popup
list of available objects.


Ctrl-space gives you an autocomplete menu that works just as well
as the default autocomplete. Also, on a relatively slow computer,
it can be annoying to have to wait for the autocomplete list.
Another thing is that I don't need the autocomplete list all the
time. Ctrl-space will also complete automatically for you if you've
already typed enough characters for a unique match in the list.
2) Avoidence of runtime errors. If you misspell a name using dot
notation, the compiler will catch it. With the exclaimation
point, it compiles but fails when that line of code tries to
execute.


It also has a downside, in that it depends on functionality that
you can't control (Access automatically creates hidden properties
to allow you to refer to controls with Me.), and it can lead to
corruption in certain limited circumstances.

I also think it sacrifices code comprehensibility, where ! makes
clear that you're referring to a control or field, rather than a
property or method of the form/report you're working in.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 12 '05 #7
"Michael \(michka\) Kaplan [MS]" <mi*****@online.microsoft.com> wrote in
news:3f********@news.microsoft.com:
"Peter Doering" <no****@doering.org> wrote...
On Sat, 13 Dec 2003 13:41:17 GMT, Steve wrote:
> "Me" is the reference to the active form.


... and report.


...and class.


It is the last of these that is the real meaning of Me. Forms and Reports
are actually classes, and a sub/function within the code for a Form or
Report is really a method of the class. Me is not a reference to the
*ACTIVE* form/report; it is a reference to the form in which the function
appears. A form or report can be unfocused, minimized or even hidden yet
its code can still execute (e.g. a Timer event on a form, or a report
calling a method on a hidden form to retrieve a parameter value) , and to
the code being executed, "Me" is that (unfocused/minimized/hidden) form or
report where the code lives.
Nov 12 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

303
by: mike420 | last post by:
In the context of LATEX, some Pythonista asked what the big successes of Lisp were. I think there were at least three *big* successes. a. orbitz.com web site uses Lisp for algorithms, etc. b....
7
by: KevinLee | last post by:
I found that the STL.NET published with VS Beta2, but what is the meaning of STL.NET. Is it just a simple wrapper to replace the old std stl? I can find nothing new but the keyword 'Generate' to...
7
by: Sueffel | last post by:
Okay, I have my controls, and in each one's key_down even, I have: Me.SelectNextControl(Me.ActiveControl,True,True,False,True) All controls I need do have the TabStops and do have Index's set. ...
4
by: yxq | last post by:
Hello, There are the C# codes£¬but i know a little about C#, i want to convert to VB.NET, i have try the url(http://authors.aspalliance.com/aldotnet/examples/translate.aspx), but the converted...
87
by: Robert Seacord | last post by:
The SEI has published CMU/SEI-2006-TR-006 "Specifications for Managed Strings" and released a "proof-of-concept" implementation of the managed string library. The specification, source code for...
11
by: arnuld | last post by:
i have just started to learn C++ from Bruce Eckel's book "Thinking in C++ 2/e" & i am trying to understand the meaning of "j++". ++j is pretty clear to me. i am using "g++" on my Debian Sarge. ...
27
by: stonemcstone | last post by:
I've been programming in C for years, and never experienced troubles until I started using the new RealC-32, a freeware C compiler from the same company that makes RealPlayer and Quicktime. That's...
43
by: emyl | last post by:
Hi all, here's an elementary question. Assume I have declared two variables, char *a, **b; I can then give a value to a like a="hello world";
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.