Lanason
Registered User.
- Local time
- Today, 22:39
- Joined
- Sep 12, 2003
- Messages
- 258
:banghead:
I am creating and saving a pdf version of a report and then opening for viewing
In the viewing I can use the "ID" no to link it, but in the Docmd.OuptutTo I can't see where in the syntax I can put the equivalent of "[ID]=" & [ID],
can anyone help??
I am creating and saving a pdf version of a report and then opening for viewing
In the viewing I can use the "ID" no to link it, but in the Docmd.OuptutTo I can't see where in the syntax I can put the equivalent of "[ID]=" & [ID],
can anyone help??
Code:
ReportName = "ABC123"
DoCmd.OutputTo acOutputReport, ReportName, acFormatPDF, "P:\Fault Analysis Reports\" & Forms!frmComplaintsDetail![Customer] & "\" & [FARNo] & " - " & Forms!frmComplaintsDetail![ShortDesc] & "\" & [FARNo] & " v" & [DocumentVersion] & ".pdf", False, "", 0
DoCmd.OpenReport ReportName, acViewPreview, "", "[ID]=" & [ID], acNormal