MonkeyChico
Registered User.
- Local time
- Today, 01:31
- Joined
- May 11, 2010
- Messages
- 18
I have a command button which when clicked, exports a query to an excel file using the following code:
-------------------------------------------
Private Sub cmd_exportquoterpt_Click()
On Error GoTo Macro_ExportQuoteRpt_Err
DoCmd.RunSavedImportExport "QuoteExport1"
Macro_ExportQuoteRpt_Exit:
Exit Sub
Macro_ExportQuoteRpt_Err:
MsgBox Error$
Resume Macro_ExportQuoteRpt_Exit
End Sub
-----------------------------------
I've been trying to figure out how add code to open the export file (TCS Quoting Test.xls) located at: \\redsv002\PLU\GeneralAccess\Book Transfer\Misc Docs\Test DBs\TCS Quoting Test
I tried using the RunApplication macro builder but the path did not work. I even tried entering -space- for the spaces, but it still couldn't find the file.
Your help would be greatly appreciated.
-------------------------------------------
Private Sub cmd_exportquoterpt_Click()
On Error GoTo Macro_ExportQuoteRpt_Err
DoCmd.RunSavedImportExport "QuoteExport1"
Macro_ExportQuoteRpt_Exit:
Exit Sub
Macro_ExportQuoteRpt_Err:
MsgBox Error$
Resume Macro_ExportQuoteRpt_Exit
End Sub
-----------------------------------
I've been trying to figure out how add code to open the export file (TCS Quoting Test.xls) located at: \\redsv002\PLU\GeneralAccess\Book Transfer\Misc Docs\Test DBs\TCS Quoting Test
I tried using the RunApplication macro builder but the path did not work. I even tried entering -space- for the spaces, but it still couldn't find the file.
Your help would be greatly appreciated.