hi,
i have got my save report to PDF working perfectly currently but it only works on a one by one process.
this is taking a PO number from a list box in a sub query and creating the report for this PO number.
as i said it works perfectly currently but i would like to amend it so rather than just taking one PO number is takes a selection.
i am guess i have to loop this somehow but i am at a loss as to how right now
any help would be great
thanks
i have got my save report to PDF working perfectly currently but it only works on a one by one process.
Code:
Private Sub SavePDFbttn_Click()
Dim MyPath
Dim PONumber
Dim Warehouse
Dim SBV
Dim Thefilename As String
DoCmd.OpenReport "Purchase_Order", acViewPreview
MyPath = Me.SaveLoactionTXT & "\"
PONumber = "PO Number " & Screen.ActiveReport.Txtponum & ".pdf"
Warehouse = Screen.ActiveReport.txtWarehouse & " "
SBV = Screen.ActiveReport.txtSBvendor & " "
Thefilename = MyPath & SBV & Warehouse & PONumber
DoCmd.OutputTo acOutputReport, Purchase_Order, acFormatPDF, Thefilename
DoCmd.Close acReport, "Purchase_Order"
End Sub
this is taking a PO number from a list box in a sub query and creating the report for this PO number.
as i said it works perfectly currently but i would like to amend it so rather than just taking one PO number is takes a selection.
i am guess i have to loop this somehow but i am at a loss as to how right now
any help would be great
thanks