Results 1 to 3 of 3
  1. #1
    playas is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2012
    Posts
    2

    Concatenate 2 columns in one

    Hello,



    I have 2 tables.

    1. Receipts (with 3 columns):
    Date - Store - Received
    (date/time) (text) (curency)

    2. pay (with 3 columns)
    Date - Provider - Paid
    (date/time) (text) (curency)

    I need a table who joins Store/Provider in the same column and Received/Paid in the same column.
    the table result will be like:
    Date (date/time)
    Explanation (store/provider): (text)
    Flux (received/paid): (curency)
    where store = received and provider = paid
    I know this is not concatenate, but I don't know what function is. union?
    Thanks

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    You need to structure your tables to match your requirements, and at this point it appears there is a lot you haven't told us.
    What is a Store? How does store differ from Provider? How does Receipt fit-- is it connected with a Payment - wouldn't a Payment be made against a Purchase or Order? Please help us by providing a little more info to pull these things together. Also, Date is a reserved word in Access.
    Last edited by orange; 02-20-2012 at 12:23 PM.

  3. #3
    playas is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2012
    Posts
    2
    SELECT Data,A,B,"Incasari" AS [Status]
    FROM [1 Incasari];
    UNION ALL SELECT Data,A,B,"Plati"
    FROM [1 Plati]
    ORDER BY Data, A;

    I renamed Provider and Store to A and Received and Paid to B
    Incasari = Received
    Plati = Paid

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

Similar Threads

  1. Using a query to concatenate data
    By ocampod in forum Queries
    Replies: 15
    Last Post: 03-20-2012, 08:11 AM
  2. Concatenate FROM Clause
    By Tyork in forum Queries
    Replies: 1
    Last Post: 05-20-2011, 02:12 PM
  3. concatenate
    By stephenaa5 in forum Programming
    Replies: 2
    Last Post: 10-11-2010, 05:18 PM
  4. How to Concatenate String Criteria
    By ColPat in forum Programming
    Replies: 2
    Last Post: 06-26-2010, 08:48 PM
  5. Concatenate Formula
    By Shingo in forum Programming
    Replies: 1
    Last Post: 07-25-2009, 09:14 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