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

Fill Spreadsheet w/ 2 SQL queries

Status
Not open for further replies.

rwei

Programmer
Nov 19, 2004
55
US
I am trying to fill one spreadsheet with 2 SQL queries on my web page.

Usually, I used copyFromRecordset to fill the spreadsheet. But with 2 separate SQL queries, it seems to be not working right - it only fills the sheet with the last query.

I wonder what's the right way to do this?

I know I probably can fill the spreadsheet one cell at a time, which can be slow, from the two separate recordsets. Or I wonder if I can do CopyFromRecordSet for the 1st query, then find out the last row of the worksheet, then fill cell by cell after that. Or if I can do something else easily.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top