I have two tables in my access database that I want to be able to export to excel.
I can do it by opening the table and then doing File->Export... and then choosing the format and typing in the file name.
However, this way the user actually has to type the name in so there is room for misnaming the file or for saving it as the wrong format or in the wrong location. Also, the two tables have to be exported to two separate workbooks.
What I want to be able to do is make a button on a form that automatically exports one table to one worksheet and the other to another worksheet, both in the same excel workbook.
If putting them in the same workbook isn't possible, that's fine. I just want them to automatically be exported to the same directory my access database is saved in.
If you know how to do it, an added perk might be to customize the name to include the date. That way the directory would have historical exports as well. Any advice?