Results 1 to 6 of 6
  1. #1
    catat is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    17

    Form Filter

    Hello!



    I have a transaction table set up with FamilyID, Type, Date, etc...

    I have 3 different forms for the three different intake types that can be selected. Basically, what I am trying to have happen is when one of the three forms is opened, the form is filtered by the Type.

    The only way that I can think of making this work is by having three different queries (one for each type), and I know that there is an easier, more efficient way to do this. I guess that shows how much I know about Access!

    Thanks for your help, as always..

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    You can use this technique:

    BaldyWeb wherecondition
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    catat is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    17
    Thank you for the fast reply.
    After posting, I realized that I may not have been as clear.
    I did use that link for the first part of my table. The FamilyID is already filtered using the Where Condition. After a family is selected, I would like to open one of the three forms that are based on the three types. The three types are Internal Intake, Child Intake, and Family Intake. I have created three seperate forms for each Type. When I open one of the forms, the FamilyID is filtered, showing ALL records for this particular family. I need the form to be filtered by the Type as well. For example, when I open the Internal Intake form, all records for the selected family are showing (Internal, Child, and Family Intake). I only want to view the Internal Intake entries.
    I originally had all 3 in seperate tables (which was alot easier, but a waste of space), but I figured it would be better to have only the one table because they all included the same data, just different types of intakes. I hope this makes sense.
    Once again, thanks!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    You could use that technique with 2 conditions, like:

    "FamilyID = " & Whatever & " AND Type = 'InternalIntake'"

    Does that type of thing work for you?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    catat is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    17
    Perfect! I knew it would be a simple solution, but I am so unfamiliar with writing code. Thank you!!

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    No problem, glad we got it working. You can also get the type from the form the same way you get the family ID, if that works better for you.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 11-25-2013, 10:56 AM
  2. filter by form for report
    By stephenaa5 in forum Reports
    Replies: 1
    Last Post: 05-08-2010, 03:14 AM
  3. Filter form by column
    By smikkelsen in forum Forms
    Replies: 10
    Last Post: 04-27-2010, 10:46 PM
  4. Filter my form from combo box
    By Angate in forum Forms
    Replies: 3
    Last Post: 04-24-2010, 01:57 PM
  5. Filter by Form? Confused...
    By andmunn in forum Forms
    Replies: 0
    Last Post: 01-14-2010, 01:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums