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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combine two columns from two tables into on column using a query.

Status
Not open for further replies.

0243906

Technical User
Jul 29, 2005
18
0
0
IE
Im trying to query two tables together which have almost the same information except for one column of information. In the query i want to get a list of all information in the two tables and leave out the columns that i don't need. My problem is how do i combine two columns from two different tables (but with same info and column heading) into one single column using a query.
 
Hi
If you mean into one long column, you could look at a Union query.
 
Have a look at the concatenation operator &:
SELECT Table1.FieldX & ' ' & Table2.FieldY AS CombinedInfo

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hey thanks a million its workinf for me now ya saved me alot of time and effort.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top