My goal is to pull a report based on the record I'm working in then to save it as a pdf. I know how to pull a report while in the record ...
DoCmd.OpenReport stDocName, acNormal, , "[CaseNumber] =" & Forms!frmCases!CaseNumber
... but I don't know how to incorporate the [CaseNumber] into the Outputto code ...
DoCmd.OutputTo ObjectType:=acOutputReport, ObjectName:="rptAssignmentRIP", _
OutputFormat:=acFormatPDF, OutputFile:="C:\temp\RIP.pdf"
DoCmd.OpenReport stDocName, acNormal, , "[CaseNumber] =" & Forms!frmCases!CaseNumber
... but I don't know how to incorporate the [CaseNumber] into the Outputto code ...
DoCmd.OutputTo ObjectType:=acOutputReport, ObjectName:="rptAssignmentRIP", _
OutputFormat:=acFormatPDF, OutputFile:="C:\temp\RIP.pdf"