Results 1 to 4 of 4
  1. #1
    scoe is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    91

    Smile Filter a continuous Form using data from two fields

    Hi, I hope someone can solve this for me.


    I have two fields, [Faculty] and [Faculty2] in a continuous form both holding a different faculty or the second field [Faculty2] remaining empty... I need to be able to filter all records with, say, science, irrespective if it is in [Faculty] or[Faculty2].

    At the moment I have a combobox which will successfully filter one or other field but not look at both and I'm not sure how to handle this, I was looking at an IIf statement but cannot get it to work.

    Code I have at present:

    [Me.Filter = "[Faculty]=" & Chr(34) & Me.Combo100 & Chr(34)
    Me.FilterOn = True]

    Any support would be greatly appreciated, thank you

    Sara

  2. #2
    azhar2006's Avatar
    azhar2006 is offline Expert
    Windows 7 32bit Access 2007
    Join Date
    Mar 2012
    Posts
    528
    Hello
    Look at this example
    Is it what you're looking for
    https://www.accessforums.net/sample-...box-45548.html

  3. #3
    scoe is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    91
    Hi
    Thank you but no
    Using the example below, if I was looking for Technology I would want Records: Org/48 and Org/49 to be filtered out.... Hope that is a little clearer.

    OrgID Faculty Faculty2
    Org/47 Creative & Professional Studies Science
    Org/48 Technology Science
    Org/49 Creative & Professional Studies Technology

  4. #4
    scoe is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    91
    Thank you for your help, I have sorted it by using a parameter query as my filter.

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

Similar Threads

  1. Filter email field on continuous form gives error
    By Ruegen in forum Programming
    Replies: 7
    Last Post: 10-10-2013, 09:31 PM
  2. Replies: 3
    Last Post: 09-23-2013, 06:42 AM
  3. Replies: 1
    Last Post: 11-24-2011, 07:45 AM
  4. Filter a Continuous Form
    By michel_annie22 in forum Forms
    Replies: 7
    Last Post: 11-09-2011, 07:34 AM
  5. Replies: 2
    Last Post: 04-12-2011, 08:33 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