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!

Automatically export table named as current date

Status
Not open for further replies.

kaseu

MIS
Feb 13, 2004
3
US
Hi,

I have a database that runs a report daily and creates a table (make-table query) with the results. I need to export this table into an Excel spreadsheet and save it as the current date. I'd like to set the database up to do this automatically. I thought I had seen another thread weeks ago addressing this problem, but couldn't find it. Any help would be GREAT! Thank you!!!
 
instead of doing a make table query, why don't you just export the query to an excel file.

export the query or table using the following

Code:
Dim Dataexport 

Dataexport = Date ' the name of the file

DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, "Name of Table or Query", Dataexport, True

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top