Results 1 to 4 of 4
  1. #1
    bb_ is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    15

    Adding where to formula in a query

    i'm trying to concatenate with allen brownes concatrelated function. i need the description for each ID where the type is internet. here's what i'm using now buts its concatenating all descriptions


    Description: ConcatRelated("[Description]","[Bill Details]","Type=""" & [Type] & """" And "[ID]=" & [ID])



    I want to concatenation the description where the Type field = "internet"

    how can i add a where to the formula?

  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,652
    For just that code:

    Description: ConcatRelated("[Description]","[Bill Details]","Type= 'internet' And [ID]=" & [ID])
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    bb_ is offline Novice
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    15
    thanks pbaldy- can you help me with the quotations the ID is a short text

  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,652
    Description: ConcatRelated("[Description]","[Bill Details]","Type= 'internet' And [ID]='" & [ID] & "'")
    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: 19
    Last Post: 07-13-2015, 10:15 AM
  2. Replies: 41
    Last Post: 05-29-2015, 02:58 PM
  3. Formula in Query
    By LeadTechIG in forum Queries
    Replies: 6
    Last Post: 05-12-2015, 05:50 AM
  4. Need help with Query formula
    By krymer in forum Queries
    Replies: 5
    Last Post: 09-30-2010, 06:51 AM
  5. Help with formula for Query
    By goldie6175 in forum Queries
    Replies: 1
    Last Post: 02-18-2010, 11:29 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