Results 1 to 3 of 3
  1. #1
    Try2Live4God is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    1

    Query and Concatenation

    Hello All,

    I'm a newb when it comes to VBA.
    So please bare with me.....

    I have this access 2007 table where I store a database of all my sneakers. I want to be able to concatenate the descriptions/results with the Type of sneaker when the query runs.

    So here's my table.



    I basically want it to say:
    Air Jordan 1 - Leroy Smith 1's & AJKO's
    Air Jordan 11 - Spacejams, Playoff's & Anniversary Editions
    Air Jordan 12 - Bred's & Playoff's



    How do I query this?? Or do I need a VBA for this??

  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,640
    This would be one way, with some adaptation:

    Return a concatenated list of sub-record values
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    thart21 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    83
    Hey, I've been working on the same thing so thought I'd send you a zip file of a db I found. Can't remember where I got it but, thanks to whomever posted it. It should do what you're looking for but, as I'm trying it out, I see that it is expecting the ID field (Jordan Number in your case) to be a number format, not text) I'll let you know when I get that fixed. If I change that field to a number, it works perfectly.

    Make sure you set a reference to the Microsoft Active X Data Objects library.

    Cheers

    Found it - here's the link to the forum thread which also explains how to change it to recognize "text"
    http://www.access-programmers.co.uk/...ad.php?t=64611
    Thanks to Jon K for sharing.

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

Similar Threads

  1. Concatenation of Text and Number
    By diane802 in forum Reports
    Replies: 67
    Last Post: 01-26-2010, 03:37 PM
  2. Concatenation and IIF statements in report
    By bjsbrown in forum Reports
    Replies: 20
    Last Post: 10-19-2009, 10:00 AM
  3. Concatenation Urgent Help
    By Shoaib in forum Queries
    Replies: 0
    Last Post: 04-23-2009, 11:02 PM
  4. Concatenation, nested IIF functions
    By krymer in forum Queries
    Replies: 2
    Last Post: 10-20-2008, 07:27 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