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  

Filter subform based upon field from another tab



 
 
Thread Tools Display Modes
  #1  
Old November 1st, 2006, 06:05 AM posted to microsoft.public.access.forms
Stukmeister
external usenet poster
 
Posts: 20
Default Filter subform based upon field from another tab

Parent form is related to Client table.
Tab1 has Client subform.
Tab2 has Project subform.
Tab3 has ProjectTask subform (ProjectTask is owned by Project)

On Tab2, I want to be able to select a Project and when Tab3 is selected I
want to be able to filter only the Project selected in Tab2.

How do I do that?

  #2  
Old November 2nd, 2006, 09:51 AM posted to microsoft.public.access.forms
strive4peace
external usenet poster
 
Posts: 1,670
Default Filter subform based upon field from another tab

for the subform on tab3:

LinkMasterFields -- subform2_controlname.form!ProjectID
LinlkChildFields -- ProjectID

and then make sure ProjectID is in both places -- it can be hidden but
must be there

you may need to requery subform3 on the current event of subform2...

me.parent.subform2_controlname.form.requery

Warm Regards,
Crystal
*
(: have an awesome day
*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*



Stukmeister wrote:
Parent form is related to Client table.
Tab1 has Client subform.
Tab2 has Project subform.
Tab3 has ProjectTask subform (ProjectTask is owned by Project)

On Tab2, I want to be able to select a Project and when Tab3 is selected I
want to be able to filter only the Project selected in Tab2.

How do I do that?

 




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 05:36 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.