When I run the following procedure the report always outputs to the Windows desktop.
Dim stDocName As String
Dim StFileName As String
stDocName = "rptSiteOrders"
StFileName = Forms!frmViewOrders!cmbSites & "." & "RTF"
DoCmd.OutputTo acOutputReport, stDocName, acFormatRTF, StFileName
How can I force the output to save to a named folder on the desktop?
How can I ceck if the folder exists (giving the user the option to create it would be even better)?
How do I check whether the file already exists in the folder and give the option to overwrite?
Thanks for your time
NELMO
Dim stDocName As String
Dim StFileName As String
stDocName = "rptSiteOrders"
StFileName = Forms!frmViewOrders!cmbSites & "." & "RTF"
DoCmd.OutputTo acOutputReport, stDocName, acFormatRTF, StFileName
How can I force the output to save to a named folder on the desktop?
How can I ceck if the folder exists (giving the user the option to create it would be even better)?
How do I check whether the file already exists in the folder and give the option to overwrite?
Thanks for your time
NELMO