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

Add 2 Recordsets

Status
Not open for further replies.

vbjohn

Programmer
Aug 23, 2001
67
US
Is there a way that you can add 2 recordsets together into one?

I have to get records from 2 different databases and put them together into 1 report.


John-
 
My first reaction was to write a union query, however this will not work because tables belong to two different databases, i.e. two different connection strings.
You could but both tables into one disconnected recordset.
You could also create a temporary table in one of the databases.
 
FYI:

There is a product called "Data Connect by Attunity" It allows you to do a single SQL query against multiple data sources. Reasonably cheap for what it can do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top