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 in footer with combo box in main Form



 
 
Thread Tools Display Modes
  #1  
Old December 20th, 2006, 06:45 PM posted to microsoft.public.access.forms
eschlep via AccessMonster.com
external usenet poster
 
Posts: 32
Default Filter subform in footer with combo box in main Form

I have a combo box in a form header that filters records in the detail
section. I want that combo box to also filter a subform that is located in
the footer section of the form. The subform always displays all the records,
could someone help me to get the subform to filter the records by using the
combo box in the header of the main form.

Thanks

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

  #2  
Old December 20th, 2006, 07:45 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Filter subform in footer with combo box in main Form

Add something like this to the After Update event of the combo (I assume that
is where you are filtering the main form)

Me.MySubFormControl.Form.Filter = 'put the filtering criteria here
Me.MySubFormControl.Form.FilterOn = True

There is a bug to be aware of when filtering both the form and the subform.

Go to this site http://allenbrowne.com/Access2007.html#Bugs
Click on Whats Fixed
In the last entry in the table (Filters), click on Filter Bugs
Read item 1.

"eschlep via AccessMonster.com" wrote:

I have a combo box in a form header that filters records in the detail
section. I want that combo box to also filter a subform that is located in
the footer section of the form. The subform always displays all the records,
could someone help me to get the subform to filter the records by using the
combo box in the header of the main form.

Thanks

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


 




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 11:15 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.