A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

What does me.visible means?



 
 
Thread Tools Display Modes
  #1  
Old October 31st, 2008, 06:08 AM posted to microsoft.public.access
Bart
external usenet poster
 
Posts: 89
Default What does me.visible means?

What does "me.visible" means? What does "me" stands for?
  #2  
Old October 31st, 2008, 06:14 AM posted to microsoft.public.access
Allen Browne
external usenet poster
 
Posts: 11,706
Default What does me.visible means?

"Bart" wrote in message
...
What does "me.visible" means? What does "me" stands for?


Me is a reference to the current form/report.

For example, if the current form is Form1, then Me is the same as:
Forms![Form1]

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
  #3  
Old October 31st, 2008, 12:03 PM posted to microsoft.public.access
BruceM[_2_]
external usenet poster
 
Posts: 1,763
Default What does me.visible means?

To expand a bit on what Allen wrote (my apologies if I am stating the
obvious, but it is not entirely clear whether your question is entirely
about the use of "Me" or whether you are also trying to sort out how to use
the Visible property), the Visible property can be used to show or hide a
control, form, or report. For instance, you could have this in the Current
event of a form for recording personal information:

If Me.NewRecord Then
Me.txtMaidenName.Visible = False
Else
Me.txtMaidenName.Visible = (Me.Gender = "Female")
End If

(txtMaidenName is a text box bound to the MaidenName field)

Then, in the AfterUpdate event of the combo box Me.cboGender (bound to the
field [Gender]):

Me.txtMaidenName.Visible = (Me.Gender = "Female")

This expression evaluates either to True or False, and can be used in place
of the words True or False:
(Me.Gender = "Female")

"Bart" wrote in message
...
What does "me.visible" means? What does "me" stands for?


  #4  
Old October 31st, 2008, 09:36 PM posted to microsoft.public.access
David W. Fenton
external usenet poster
 
Posts: 3,373
Default What does me.visible means?

"Allen Browne" wrote in
:

"Bart" wrote in message
...
What does "me.visible" means? What does "me" stands for?


Me is a reference to the current form/report.


Actually, the current class-module-bearing object (i.e., form or
report).

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:54 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.