murtazakhambaty
New member
- Local time
- Today, 03:39
- Joined
- Oct 4, 2014
- Messages
- 6
Hi
I am writing the following code but its keeps on giving error. Can you please help.
Private Sub ReporttoPDF_Click()
Dim sFPath As String
sFPath = "D:\Adobe Documents\Quotation\ & Me.QuotationID & Me.QuotationYear & " --- " & Me.Company & " - " & Me.BACity"
sFPath = sFPath & Me.QuotationID & Me.QuotationYear & " ---" & Me.Company & " - " & Me.BACity & ".pdf"
DoCmd.OutputTo acOutputReport, "", acFormatPDF, sFPath, False
End Sub
I want my PDF file to save as follows:
XYZ-XYZ10000-2014 --- ABC-City.pdf
I am writing the following code but its keeps on giving error. Can you please help.
Private Sub ReporttoPDF_Click()
Dim sFPath As String
sFPath = "D:\Adobe Documents\Quotation\ & Me.QuotationID & Me.QuotationYear & " --- " & Me.Company & " - " & Me.BACity"
sFPath = sFPath & Me.QuotationID & Me.QuotationYear & " ---" & Me.Company & " - " & Me.BACity & ".pdf"
DoCmd.OutputTo acOutputReport, "", acFormatPDF, sFPath, False
End Sub
I want my PDF file to save as follows:
XYZ-XYZ10000-2014 --- ABC-City.pdf