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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How Me works?



 
 
Thread Tools Display Modes
  #11  
Old January 30th, 2010, 11:33 PM posted to microsoft.public.access.forms
Gina Whipp
external usenet poster
 
Posts: 3,500
Default How Me works?

Matt,

From FormOne to FormTwo Requery...

Forms![FromTwo].Requery

--
Gina Whipp
2010 Microsoft MVP (Access)

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"mbr96 via AccessMonster.com" u8822@uwe wrote in message
news:a2e77b9b2cfc6@uwe...
Setting aside the focus part (a good topic too), I think we're all in
agreement that "Me" refers to the object from which you are running code.
That seems to be the essence of my problem - I have a Me.Requery in the
second form, intending to requery the data source from the first form.

In your example, what syntax do you use to tell FormOne to requery FormTwo?
Matt

Gina Whipp wrote:
Rick,

My understanding is different... Okay, I have two forms open FormOne and
FormTwo. The Me.Requery is on FormOne but presently FormTwo has the focus.
Unless I tell FormOne to Requery FormTwo, running Me.Requery on FormOne
does
nothing for FormTwo. Boy, say that ten times fast! That is what I always
understood, at least that is the way it always appeared to me.

Gina Whipp wrote:

mbr96,

[quoted text clipped - 4 lines]
get the Requery you have to *name* them in your statement. Does that
help
you understand?


I don't think that is correct. Some of the RunCommand commands act upon
the
object that has focus regardless of where the code is running, but
Me.Requery or Me.(AnythingElse) will always act upon the object running the
code. Focus does not matter.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201001/1


  #12  
Old January 30th, 2010, 11:34 PM posted to microsoft.public.access.forms
Gina Whipp
external usenet poster
 
Posts: 3,500
Default How Me works?

Matt,

We'll be waiting if you get stuck!

--
Gina Whipp
2010 Microsoft MVP (Access)

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"mbr96 via AccessMonster.com" u8822@uwe wrote in message
news:a2e7af7a0c290@uwe...
Thanks again to both of you, I got this working with a full form reference
from one form to requery the subform control on the other form. I was
thinking that once I had changed the recordsource of an object, that object
was now "Me", but noooooo. Now for some experimentation with focus...

Matt

mbr96 wrote:
Setting aside the focus part (a good topic too), I think we're all in
agreement that "Me" refers to the object from which you are running code.
That seems to be the essence of my problem - I have a Me.Requery in the
second form, intending to requery the data source from the first form.

In your example, what syntax do you use to tell FormOne to requery FormTwo?
Matt

Rick,

[quoted text clipped - 16 lines]
Me.Requery or Me.(AnythingElse) will always act upon the object running
the
code. Focus does not matter.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201001/1


  #13  
Old January 31st, 2010, 01:20 AM posted to microsoft.public.access.forms
Rick Brandt
external usenet poster
 
Posts: 4,354
Default How Me works?

Gina Whipp wrote:

Rick,

My understanding is different... Okay, I have two forms open FormOne and
FormTwo. The Me.Requery is on FormOne but presently FormTwo has the
focus. Unless I tell FormOne to Requery FormTwo, running Me.Requery on
FormOne does
nothing for FormTwo. Boy, say that ten times fast! That is what I always
understood, at least that is the way it always appeared to me.


That is what I said. "Me" operates on the form where the code is run
without regard to focus. Your original reply seemed to indicate that the
form needed to have focus.

"whichever object has the focus AND if the Me.Requery is in that object then
that is what will get the Requery."

Your statement is correct if you remove the focus part from it.
  #14  
Old January 31st, 2010, 01:39 AM posted to microsoft.public.access.forms
Gina Whipp
external usenet poster
 
Posts: 3,500
Default How Me works?

Rick,

Hmmm, okay I can see how I poorly phrased that!

--
Gina Whipp
2010 Microsoft MVP (Access)

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"Rick Brandt" wrote in message
...
Gina Whipp wrote:

Rick,

My understanding is different... Okay, I have two forms open FormOne and
FormTwo. The Me.Requery is on FormOne but presently FormTwo has the
focus. Unless I tell FormOne to Requery FormTwo, running Me.Requery on
FormOne does
nothing for FormTwo. Boy, say that ten times fast! That is what I always
understood, at least that is the way it always appeared to me.


That is what I said. "Me" operates on the form where the code is run
without regard to focus. Your original reply seemed to indicate that the
form needed to have focus.

"whichever object has the focus AND if the Me.Requery is in that object then
that is what will get the Requery."

Your statement is correct if you remove the focus part from it.


 




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 07:56 AM.


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