Share via

Automatic export to excel from access

Anonymous
2012-06-09T20:08:10+00:00

I have to create an excel template to which i have to export data from my access2010 db. how do i do both and in an automatic way

as the report is required daily and momthly.

  1. from my form, i have to print a receipt with only the current record(preferably on textfile) how do i do it and how do i keep the

record in final format for future refetence etc?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2012-06-09T20:53:31+00:00

    Re your first question:

    Exporting data to a prepared Exel template (as opposed to a new blank workbook which can be done with DoCmd.TransferSpreadsheet) can be done with automation. Have you seen this KB article? http://support.microsoft.com/kb/306022

    In an automated way: this would require setting up a task in the Windows Scheduler:

    http://windows.microsoft.com/en-US/windows7/Schedule-a-task

    This would invoke msaccess with a special command line switch /cmd or /x:

    http://support.microsoft.com/kb/209207

    Then your code or macro could export the data to Excel, and close Access.

    Re your second question:

    Better to post a new question, with a proper subject line, so people can readily find it.

    Was this answer helpful?

    0 comments No comments