Results 1 to 5 of 5
  1. #1
    QuickQuery? is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    3

    Query Multiple Filter

    Hi All new guy with hopefully a quick question. My Access skills = Sux and I'm very new to it so any advice offered I'll thank you in advance.




    I have 2 tables in the query joined by a unique id field in both tables.

    The query shows 5 columns, specifically:
    one building id fields
    building address from table 1
    building address from table 2
    building status from table 1
    building status from table 2

    I have the following filter criteria in the "building address from table 1" area <>[building address from table 2]

    This effectively shows me all building ids, addresses and statuses (active/inactive) where the address don't match in each table.

    What I would like to do within the same query is add an additional filter that eliminates any of the above results where the two building statuses are already the same, with that value being "Inactive". Because if both tables already show that the building is Inactive any address update would not be needed. Is there anyway to do this?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Are the status fields text type?

    Create a field with calculation

    BothInActive: IIf([building status from table 1] = "InActive" AND [building status from table 2] = "InActive", True, False)

    Criteria under that constructed field: False
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    QuickQuery? is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    3
    Quote Originally Posted by June7 View Post
    Are the status fields text type?

    Create a field with calculation

    BothInActive: IIf([building status from table 1] = "InActive" AND [building status from table 2] = "InActive", True, False)

    Criteria under that constructed field: False
    They are text


    I will try it, thx

  4. #4
    QuickQuery? is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    3
    Ahhhh Freakin' SWEEEEET. Thanks so much June7 it works perfectly. I would have never thought to try such a thing.

    PM Me your email and I'll send you a coffee

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Make that a margherita and we're even.

    Glad it worked.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Multiple Sub Forms with Query Filter
    By Gabriel2012 in forum Forms
    Replies: 1
    Last Post: 02-04-2013, 05:34 PM
  2. Replies: 8
    Last Post: 11-04-2012, 09:13 PM
  3. Set Listbox Filter w/ Multiple Textboxes
    By Ganymede in forum Forms
    Replies: 1
    Last Post: 01-13-2012, 04:02 AM
  4. Filter Multiple Forms from one option box
    By chaos_05 in forum Forms
    Replies: 1
    Last Post: 12-02-2011, 10:39 AM
  5. Multiple filter problem.
    By ducecoop in forum Access
    Replies: 2
    Last Post: 10-28-2010, 11:14 AM

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