L ludfic New member Local time Today, 22:16 Joined Feb 23, 2007 Messages 3 Feb 23, 2007 #1 Hi What I want to do is following: Open an Excel file based on an existing Access table. This event will be triggered by pressing a button on a form. Could anyone please point me in the right direction? Regards
Hi What I want to do is following: Open an Excel file based on an existing Access table. This event will be triggered by pressing a button on a form. Could anyone please point me in the right direction? Regards
Bodisathva Registered User. Local time Today, 17:16 Joined Oct 4, 2005 Messages 1,274 Feb 23, 2007 #2 this thread discusses how to open an external file.
L ludfic New member Local time Today, 22:16 Joined Feb 23, 2007 Messages 3 Feb 23, 2007 #3 Thanks for replying. It is not as simple as opening an external file. The Excel file that I want to open doesn't exist. Here, let me re-phrase: I want to load an Access table into an Excel spreadsheet on a form using a button.
Thanks for replying. It is not as simple as opening an external file. The Excel file that I want to open doesn't exist. Here, let me re-phrase: I want to load an Access table into an Excel spreadsheet on a form using a button.
Bodisathva Registered User. Local time Today, 17:16 Joined Oct 4, 2005 Messages 1,274 Feb 23, 2007 #4 ludfic said: I want to load an Access table into an Excel spreadsheet on a form using a button. Click to expand... look at the help file for DoCmd.OutputTo. use the output to command to create the file, then open it with the shell command.
ludfic said: I want to load an Access table into an Excel spreadsheet on a form using a button. Click to expand... look at the help file for DoCmd.OutputTo. use the output to command to create the file, then open it with the shell command.
L ludfic New member Local time Today, 22:16 Joined Feb 23, 2007 Messages 3 Feb 23, 2007 #5 Thanks for your help. This line of code worked: DoCmd.OutputTo acOutputTable, "testtable", acFormatXLS, "test.xls", True
Thanks for your help. This line of code worked: DoCmd.OutputTo acOutputTable, "testtable", acFormatXLS, "test.xls", True