Results 1 to 3 of 3
  1. #1
    Alex Motilal is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Nov 2008
    Location
    Coimbatore, India
    Posts
    193

    Smile Concatenate

    Hello friends,


    I have a Database of Cotton Ginning & Pressing operations. Among the tables, two tables are:

    tblLots with LotID, LotNumber, NumberOfBales as fields
    tblPressing with Lot_ID, BalesPressed, DtOfPressing and the relation is set to LotID/Lot_ID

    The number of bales for each Lot will be 100. However, pressing dates may vary. For example LotID 1 may be pressed on two different dates such as 48 bales on 24/07/2017 and 52 bales on 25/07/2017.

    I want a query with fields LotID, PressingDtAndBales and the following as result:

    1 48:24/07/2017;52:25/07/2017

    The second field result is concatenated.

    Please give the SQL for the concatenation.

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Cannot do this with SQL alone.

    Review: http://allenbrowne.com/func-concat.html
    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
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    I agree with June. Allen Browne's function is often referenced for this type of presentation.
    Are there more tables in your database/business? If so, where do they fit?

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

Similar Threads

  1. Concatenate two fields
    By buckwheat in forum Access
    Replies: 8
    Last Post: 06-28-2013, 07:06 AM
  2. Concatenate and Justify
    By libraccess in forum Forms
    Replies: 1
    Last Post: 03-03-2013, 03:39 PM
  3. Replies: 5
    Last Post: 03-13-2012, 01:13 PM
  4. Concatenate 2 columns in one
    By playas in forum Queries
    Replies: 2
    Last Post: 02-20-2012, 12:05 PM
  5. concatenate
    By stephenaa5 in forum Programming
    Replies: 2
    Last Post: 10-11-2010, 05:18 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