Results 1 to 5 of 5
  1. #1
    Mick99 is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Jul 2015
    Posts
    58

    Concatenation query not sure how to add the second criteria


    Hi, i have a query that returns results for the code in black, however i need to filter the data by a second criteria, which is in the red. I'm no expert at how these should be joined but essentially I am still looking at the tbl_Actions to find the field ACTIONS_KEY_ID and then filter that against the current loaded MSD_SYSTEM_KEY_ID. Any help would be appreciated.

    ActionsConcateObligations: ConcatRelated("Actions_ID ","tbl_Actions"," ACTIONS_WP_LINK = " & [MDS_tbl_Item_ID] & ","tbl_Actions"," ACTIONS_KEY_ID = MSD_SYSTEM_KEY_ID)

    Cheers Mick

  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,522
    More like:

    ConcatRelated("Actions_ID ","tbl_Actions"," ACTIONS_WP_LINK = " & [MDS_tbl_Item_ID] & " And ACTIONS_KEY_ID = " & MSD_SYSTEM_KEY_ID)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,943
    ActionsConcateObligations: ConcatRelated("Actions_ID", "tbl_Actions", "ACTIONS_WP_LINK = " & [MDS_tbl_Item_ID] & " AND ACTIONS_KEY_ID = " & [MSD_SYSTEM_KEY_ID])

    Are both fields number type?

    If the query requires a GROUP BY, be sure to include both fields.
    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.

  4. #4
    Mick99 is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Jul 2015
    Posts
    58
    Problem solved! Thank you very much for the help it's greatly appreciated.

    Cheers Mick

  5. #5
    Mick99 is offline Advanced Beginner
    Windows 7 32bit Access 2013
    Join Date
    Jul 2015
    Posts
    58
    Thanks June7, yep both number and all group by. Solution works, i love this forum!

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

Similar Threads

  1. Replies: 2
    Last Post: 03-23-2017, 08:35 AM
  2. Concatenation
    By Zinger in forum Access
    Replies: 2
    Last Post: 11-08-2015, 12:30 PM
  3. Conditional query concatenation
    By IroncladRooster in forum Access
    Replies: 6
    Last Post: 09-08-2014, 09:37 AM
  4. Concatenation
    By Rhubie in forum Access
    Replies: 3
    Last Post: 08-30-2012, 05:09 PM
  5. Query and Concatenation
    By Try2Live4God in forum Programming
    Replies: 2
    Last Post: 05-25-2010, 03:45 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