Good morning chaps,
Small Issue came up.......
Above works on my laptop perfectly, but on another PC it seems to get stuck DoCmd.output line, on screen it looks like exporting but nothing saved as PDF (only some.tmp file) and doesnt open the exported report for viewing
Any ideas?
Small Issue came up.......
Code:
Private Sub PrintInvoice()
Dim strfullpath As String
Dim varfolder As String
varfolder = "S:\NATIONAL HOTELS\99 Project Database\Files\InvoiceApprovals"
strfullpath = varfolder & "\" & Me.VendorName & " " & Me.InvNo & ".pdf"
DoCmd.OutputTo acOutputReport, "rptInvoiceEntry", acFormatPDF, strfullpath, True
DoCmd.Close acReport, "rptInvoiceEntry", acSaveNo
End Sub
Above works on my laptop perfectly, but on another PC it seems to get stuck DoCmd.output line, on screen it looks like exporting but nothing saved as PDF (only some.tmp file) and doesnt open the exported report for viewing
Any ideas?