Hi,
If someone can help me.
I have a button on my form that Outputs a PDF. I have got it to work and add Todays Date onto the file name.
I also want to add a Work Order no from a Query but not sure how to.
My Query name is [WoTestPackLabelPdfQy]
I want the [WoTestPackLabelPdfQy] no to be the start of the file name
Here is what I have now
Private Sub PDF_Click()
Dim outputTestPackLabel As String
outputTestPackLabel = "\\llkna1-2\hewittb$\Welding Folder Structure\Job Packages - Welding Jobs\Maintenance\AdobePDFs\TestPackLabelForAdobe (" & Format(Date, "Medium Date") & ").pdf"
DoCmd.OutputTo acOutputReport, "TestPack(Stamp) Label Single", acFormatPDF, outputTestPackLabel, False, , , acExportQualityPrint
End Sub
This code will put the PDF into the correct folder and add todays date EX:TestPackLabelForAdobe (28-Sep-12)
I am not sure how to add the [WoTestPackLabelPdfQy] into the start of the file. EX:Wo65347722 - TestPackLabelForAdobe (28-Sep-12)
Thanks BBBryan
If someone can help me.
I have a button on my form that Outputs a PDF. I have got it to work and add Todays Date onto the file name.
I also want to add a Work Order no from a Query but not sure how to.
My Query name is [WoTestPackLabelPdfQy]
I want the [WoTestPackLabelPdfQy] no to be the start of the file name
Here is what I have now
Private Sub PDF_Click()
Dim outputTestPackLabel As String
outputTestPackLabel = "\\llkna1-2\hewittb$\Welding Folder Structure\Job Packages - Welding Jobs\Maintenance\AdobePDFs\TestPackLabelForAdobe (" & Format(Date, "Medium Date") & ").pdf"
DoCmd.OutputTo acOutputReport, "TestPack(Stamp) Label Single", acFormatPDF, outputTestPackLabel, False, , , acExportQualityPrint
End Sub
This code will put the PDF into the correct folder and add todays date EX:TestPackLabelForAdobe (28-Sep-12)
I am not sure how to add the [WoTestPackLabelPdfQy] into the start of the file. EX:Wo65347722 - TestPackLabelForAdobe (28-Sep-12)
Thanks BBBryan