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

Adding Data to Excel Spreadsheet from Access Programmatically

Status
Not open for further replies.

soonerman1978

Programmer
Jun 26, 2003
8
US
Thanks for taking the time to look at this.

I have got my Excel Spreadsheet to open and put out column headings. But I appear to have hit a bump. I have no clue (even after hours of research :)) how to get the data from my Access database to this Excel spreadsheet. Any help on this is much appreciated..... Thanks
 
What are you trying to accomplish? You can send data from Access to Excel using the Docmd.OutputTo command:

DoCmd.OutputTo acOutputQuery, "qryMy_Data", acFormatXLS, "MyData.xls", True

If you want more flexibility, I can send you some code that spins through a recordset and builds an excel spreadsheet manually...

Bill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top