I have a series of quotes that I print in PDF from Access however everytime I print the quote it comes up with the same file name which I have to modify so it does not over write the previous quote as I print a series of quotes at one time. The code is show below can anyone help me with a way to automatically have the name of the file = the quote number
Private Sub Command15_Click()
PrintQuoteNo = Me.StartQuoteNo
While (PrintQuoteNo <= Me.EndQuoteNo)
DoCmd.OpenReport "QuotePrintSignedPDF", acViewNormal, , "QuoteNo =" & PrintQuoteNo
DoCmd.Close acReport, "QuotePrint"
PrintQuoteNo = (PrintQuoteNo + 1)
Wend
End Sub
Private Sub Command15_Click()
PrintQuoteNo = Me.StartQuoteNo
While (PrintQuoteNo <= Me.EndQuoteNo)
DoCmd.OpenReport "QuotePrintSignedPDF", acViewNormal, , "QuoteNo =" & PrintQuoteNo
DoCmd.Close acReport, "QuotePrint"
PrintQuoteNo = (PrintQuoteNo + 1)
Wend
End Sub