PC Review


Reply
Thread Tools Rate Thread

Apply Filter Help??

 
 
=?Utf-8?B?QWNjZXNzIEhlbHA=?=
Guest
Posts: n/a
 
      20th Jul 2007
Hi all,
I have form with a sub form in a DataSheet view. What I would like to do is,
filter one field so only the data matching that field will display in the
subform (datasheet view) within the main form. Is this possible? So I will
have a drop down box on the main form and when I select this it should filter
the subfomr with the appropiate data. Can anyone help?
Thanks
 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      20th Jul 2007
If it's just the one combo on the main form, you can do that just by setting
the Link Master Fields property of your subform to the name of the combo,
and the Link Child Fields property to the matching subform field. No code
needed. (If nothing is selected in the combo, the subform will show
nothing.)

If you want to be able to filter your form by different fields, this might
help:
Find as you type - Filter forms with each keystroke
at:
http://allenbrowne.com/AppFindAsUType.html
The idea is that you choose a field to filter by (combo), and then enter a
value to match (text box), and it filters the form as you type. You don't
need to make any changes to the code to get it to work with your form: just
copy'n'paste, and set one property.

--
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.

"Access Help" <(E-Mail Removed)> wrote in message
news:1CAA50CA-EAA9-40AE-8D1A-(E-Mail Removed)...
> Hi all,
> I have form with a sub form in a DataSheet view. What I would like to do
> is,
> filter one field so only the data matching that field will display in the
> subform (datasheet view) within the main form. Is this possible? So I
> will
> have a drop down box on the main form and when I select this it should
> filter
> the subfomr with the appropiate data. Can anyone help?
> Thanks


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
msg box to apply filter Kirsty Microsoft Excel Programming 3 19th May 2009 11:31 AM
Can not apply filter on one or more fields specified on Filter pro yanguo Microsoft Access Form Coding 2 17th Jan 2008 04:49 PM
Filter by Form/Apply Filter Command Buttons Chris Microsoft Access Forms 1 9th Jan 2004 03:22 PM
Filter on Form and Apply Filter jimtyson Microsoft Access Forms 0 7th Nov 2003 02:17 PM
Filter by form and Apply Filter JF Bouthillier Microsoft Access VBA Modules 4 9th Sep 2003 08:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:47 PM.