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  

Requery Subform not working



 
 
Thread Tools Display Modes
  #1  
Old October 28th, 2009, 05:25 PM posted to microsoft.public.access.forms
Kc-Mass
external usenet poster
 
Posts: 362
Default Requery Subform not working

I have a form which is two sub levels down

The top level form is "frmTabs"

The first sublevel is "frmTarget2"

The second sublevel is "frmProviderNo"

The forms data source for the above form is "tblProviderNo"

I want to requery the form.

I have tried several forms of expression - most recently:

" Docmd.Requery
Forms!frmTab.frmTracking2.Form!frmProviderNo!Provi derNo"

I get the error:
"Microsoft Access can't find the field 'frmProviderNo' referred to
in your expression"

Any ideas?

Thx

Kevin





  #2  
Old October 28th, 2009, 05:57 PM posted to microsoft.public.access.forms
Klatuu[_2_]
external usenet poster
 
Posts: 53
Default Requery Subform not working

Forms!frmTab!Tracking2ControlName.Form!ProviderNoC ontrolName.Form!ProviderNo.Requery

First, you use the name of the control on the form, not the name of the form
being used as the subform. Also, you said you want to requery the subform,
but using a control name will cause it to requery only that control. To
requery the subform:

Forms!frmTab!Tracking2ControlName.Form!ProviderNoC ontrolName.Form!ProviderNo.Requery

"kc-mass" connearney_AT_comcast_DOT_net wrote in message
...
I have a form which is two sub levels down

The top level form is "frmTabs"

The first sublevel is "frmTarget2"

The second sublevel is "frmProviderNo"

The forms data source for the above form is "tblProviderNo"

I want to requery the form.

I have tried several forms of expression - most recently:

" Docmd.Requery
Forms!frmTab.frmTracking2.Form!frmProviderNo!Provi derNo"

I get the error:
"Microsoft Access can't find the field 'frmProviderNo' referred to
in your expression"

Any ideas?

Thx

Kevin







  #3  
Old October 28th, 2009, 06:38 PM posted to microsoft.public.access.forms
Kc-Mass
external usenet poster
 
Posts: 362
Default Requery Subform not working

Hi Thanks for answering. I am not much on forms. Is the expression
"Tracking2ControlName" literal or does it need to have something substituted
for it.

I kind of understand that a subform is a control to a parent form but how is
it named - referred to?

thx

Kevin


"Klatuu" wrote in message
...
Forms!frmTab!Tracking2ControlName.Form!ProviderNoC ontrolName.Form!ProviderNo.Requery

First, you use the name of the control on the form, not the name of the
form being used as the subform. Also, you said you want to requery the
subform, but using a control name will cause it to requery only that
control. To requery the subform:

Forms!frmTab!Tracking2ControlName.Form!ProviderNoC ontrolName.Form!ProviderNo.Requery

"kc-mass" connearney_AT_comcast_DOT_net wrote in message
...
I have a form which is two sub levels down

The top level form is "frmTabs"

The first sublevel is "frmTarget2"

The second sublevel is "frmProviderNo"

The forms data source for the above form is "tblProviderNo"

I want to requery the form.

I have tried several forms of expression - most recently:

" Docmd.Requery
Forms!frmTab.frmTracking2.Form!frmProviderNo!Provi derNo"

I get the error:
"Microsoft Access can't find the field 'frmProviderNo' referred to
in your expression"

Any ideas?

Thx

Kevin









  #4  
Old October 29th, 2009, 02:17 PM posted to microsoft.public.access.forms
Klatuu[_2_]
external usenet poster
 
Posts: 53
Default Requery Subform not working

You use the name of the subform control. To avoid confusion, it should not
be the same name as the form identified in the subform control's Source
Object property. The Source Object Property is what is used to identify
what form to show in the control. So the basic syntax is:

Forms!FormName!SubformControlName.Form!ControlName


"kc-mass" connearney_AT_comcast_DOT_net wrote in message
...
Hi Thanks for answering. I am not much on forms. Is the expression
"Tracking2ControlName" literal or does it need to have something
substituted for it.

I kind of understand that a subform is a control to a parent form but how
is it named - referred to?

thx

Kevin


"Klatuu" wrote in message
...
Forms!frmTab!Tracking2ControlName.Form!ProviderNoC ontrolName.Form!ProviderNo.Requery

First, you use the name of the control on the form, not the name of the
form being used as the subform. Also, you said you want to requery the
subform, but using a control name will cause it to requery only that
control. To requery the subform:

Forms!frmTab!Tracking2ControlName.Form!ProviderNoC ontrolName.Form!ProviderNo.Requery

"kc-mass" connearney_AT_comcast_DOT_net wrote in message
...
I have a form which is two sub levels down

The top level form is "frmTabs"

The first sublevel is "frmTarget2"

The second sublevel is "frmProviderNo"

The forms data source for the above form is "tblProviderNo"

I want to requery the form.

I have tried several forms of expression - most recently:

" Docmd.Requery
Forms!frmTab.frmTracking2.Form!frmProviderNo!Provi derNo"

I get the error:
"Microsoft Access can't find the field 'frmProviderNo' referred
to in your expression"

Any ideas?

Thx

Kevin











 




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 06:48 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.