Skip to main content
Inspiring
April 20, 2007
Answered

CONCAT is undefined function

  • April 20, 2007
  • 3 replies
  • 538 views
I'm doing the following query (Access db), but its throwing an error, is there an alternative to CONCAT?

    This topic has been closed for replies.
    Correct answer rollerskatie
    SELECT Job_ads.*, Job_ads.ID & '|' & Job_ads.image & '|' & Job_ads.Alt
    AS Jobsadstr

    (the above code did it)

    Thanks both for your help.

    katie

    3 replies

    rollerskatieAuthorCorrect answer
    Inspiring
    April 21, 2007
    SELECT Job_ads.*, Job_ads.ID & '|' & Job_ads.image & '|' & Job_ads.Alt
    AS Jobsadstr

    (the above code did it)

    Thanks both for your help.

    katie
    Participating Frequently
    April 20, 2007
    How about +?

    SELECT Job_Ads.*, Job_Ads.ID + '|' + Job_Ads.image + '|' + Job_Ads.Alt AS Jobadstr

    <EDIT: Ugh! That's right, Access uses the ampersand. Sorry!>

    Phil
    Participating Frequently
    April 20, 2007
    Not sure if this is what you're looking for, but see http://www.techonthenet.com/access/functions/string/concat.php.

    HTH

    Ted Zimmerman