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

Merge Recordset

Status
Not open for further replies.

spangeman

Programmer
Oct 16, 2004
96
EU
Hello there.

I'm working on a VB 6 application and I need to combine data from different ODBC data sources e.g. their could be one from a SQL DB and one from an excel spreadsheet.

I can get all the data into ADO fine but is it then possible to merge the data based on some kind of join and create a merged recordset?

I have seen something similar in ADO dot Net but can't see anything like it in ADO. Unfortunatly I'm stuck with VB6 at the mo.

Regards
Spangeman
 
I think you would have to create a new recordset, create and append fields to it of the appropriate data types, then copy the data from the recordsets you opened from the various databases into this dynamically created recordset.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top