Click to See Complete Forum and Search --> : mesh 2 tables


dan.h
June 28th, 2001, 09:24 AM
I need to mesh two (sometimes more)tables,of last names, and combining them into one recordset, displaying them in alphabeltical order.I think I have to use the SQL statement CROSS JOIN but I am unsure.
thanks
dan.h

Iouri
June 28th, 2001, 09:44 AM
use UNION

sSQL = "SELECT CompanyName,City FROM Suppliers WHERE Country = 'Brazil' UNION" _
& " SELECT CompanyName, City FROM Customers WHERE Country = 'Brazil';"



Iouri Boutchkine
iouri@hotsheet.com

dan.h
June 28th, 2001, 11:02 AM
Thanks
That was what I needed!
dan.h