integritycare
Technical User
Hello,
As this is my first post,I was not sure where to put it. I was not able to find a section just for reports.
In this company database an invoice report is sent to a PDF writer (Foxit)so it can be emailed. The Caption on the report is labelled [blue]"Current Invoice"[/blue]
When an invoice is sent to the PDF writer the user is able to before saving it to be emailed add the invoice number. So the user would see on the "Print to Document dialog box", this Filename: [blue]Current Invoice:........ .pdf [/blue]
The user would then add the invoice number.
My question is this, Would it be possible to have the report name include the invoice number appropriate to that invoice?
The code on the print button on the invoice form is:
Private Sub PrintReport_Click()
Dim strDocName As String
Dim strWhere As String
strDocName = "Report-Inv"
strWhere = "[Invoices]=" & Me!Invoices
DoCmd.OpenReport strDocName, acPreview, , strWhere
Exit_Printreport_Click:
Exit Sub
Err_Printreport_Click:
MsgBox Err.Description
Resume Exit_Printreport_Click
End Sub
Or is there a better way to convert an invoice report to PDF with the invoice number attached without the user having to input the invoice number?
What I have been asked to do is to put a command button on the invoice form which would produce a pdf invoice report with the invoice number allready attached
The reason for this is to speed up the time it takes to generate an invoice.
Thank you
Integ
As this is my first post,I was not sure where to put it. I was not able to find a section just for reports.
In this company database an invoice report is sent to a PDF writer (Foxit)so it can be emailed. The Caption on the report is labelled [blue]"Current Invoice"[/blue]
When an invoice is sent to the PDF writer the user is able to before saving it to be emailed add the invoice number. So the user would see on the "Print to Document dialog box", this Filename: [blue]Current Invoice:........ .pdf [/blue]
The user would then add the invoice number.
My question is this, Would it be possible to have the report name include the invoice number appropriate to that invoice?
The code on the print button on the invoice form is:
Private Sub PrintReport_Click()
Dim strDocName As String
Dim strWhere As String
strDocName = "Report-Inv"
strWhere = "[Invoices]=" & Me!Invoices
DoCmd.OpenReport strDocName, acPreview, , strWhere
Exit_Printreport_Click:
Exit Sub
Err_Printreport_Click:
MsgBox Err.Description
Resume Exit_Printreport_Click
End Sub
Or is there a better way to convert an invoice report to PDF with the invoice number attached without the user having to input the invoice number?
What I have been asked to do is to put a command button on the invoice form which would produce a pdf invoice report with the invoice number allready attached
The reason for this is to speed up the time it takes to generate an invoice.
Thank you
Integ