Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multiple cell in same column join in one 1

Status
Not open for further replies.

aleathiel2005

Technical User
May 24, 2005
13
CA
Hi all,

I'm trying to make up a field from multiple row. Here is an exemple:

Driver Route
DR1 138
DR1 140
DR2 200
DR3 200
DR3 150
DR3 160


I would like to have all route for the same driver on the same cell, like:

Driver Route
DR1 138-140
DR2 200
DR3 200-150-160


Is there a way to do something like that?
 
My SQL is like this:

SELECT [BOL DATABASE].DATE, [BOL DATABASE].DRIVER, Left([SHIPPING_INSTR],3) AS SHIPPING3
FROM P_SO_MASTER_HEADER INNER JOIN [BOL DATABASE] ON P_SO_MASTER_HEADER.CUST_CODE = [BOL DATABASE].ACRONYM
GROUP BY [BOL DATABASE].DATE, [BOL DATABASE].DRIVER, Left([SHIPPING_INSTR],3)
HAVING ((([BOL DATABASE].DATE)=[Forms]![calcul du transport].[DateCalcul]) AND ((Left([SHIPPING_INSTR],3)) Like '###'));

How can I add the concatenate in all that?
 
I forgot to tell that this is already a query that get is iformation from 2 table.

And thanks a lot PHV!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top