M
Melissa
Hi there
I have created a report "rptInvoice", there is a button to preview the
invoice, and then a button to "Save" the invoice.
This is the code for the "Save Invoice" option, which saves the "rptInvoice"
to the "default access folder" C:\documents & settings\my documents, etc.
This works fine. However, how would I specify a path in this code to save
the report to a different folder to what the access default is set to?
Thank you
Melissa
Code:
Private Sub Command15_Click()
On Error GoTo Err_Command15_Click
Dim stDocName As String
Dim Name As String
stDocName = "rptInvoice"
Name = [Forms]![frmCompany]![frmInvoice]![Name]
DoCmd.OutputTo acOutputReport, stDocName, ".snp", Name
Exit_Command15_Click:
Exit Sub
Err_Command15_Click:
MsgBox Err.Description
Resume Exit_Command15_Click
End Sub
I have created a report "rptInvoice", there is a button to preview the
invoice, and then a button to "Save" the invoice.
This is the code for the "Save Invoice" option, which saves the "rptInvoice"
to the "default access folder" C:\documents & settings\my documents, etc.
This works fine. However, how would I specify a path in this code to save
the report to a different folder to what the access default is set to?
Thank you
Melissa
Code:
Private Sub Command15_Click()
On Error GoTo Err_Command15_Click
Dim stDocName As String
Dim Name As String
stDocName = "rptInvoice"
Name = [Forms]![frmCompany]![frmInvoice]![Name]
DoCmd.OutputTo acOutputReport, stDocName, ".snp", Name
Exit_Command15_Click:
Exit Sub
Err_Command15_Click:
MsgBox Err.Description
Resume Exit_Command15_Click
End Sub