I am trying to open a report to view an invoice for a specific invoice number. I have looked on the net and todate have not been able to resolve my problem! Help please,
My code is:
Text296 holds the required invoice number on Forms!frmMainFo rm
The query used to provide the data (qryCreateInvoi ceBuy) looks for [Forms]![frmInvoiceQ].[BuyersInvoice] to provide the filter (the invoice number), hopes this makes sense.
Thanks in anticipation
My code is:
Code:
DoCmd.OpenReport strReport, acPreview, , Forms!frmInvoiceQ.BuyersInvoiceNo = Me.Text296
The query used to provide the data (qryCreateInvoi ceBuy) looks for [Forms]![frmInvoiceQ].[BuyersInvoice] to provide the filter (the invoice number), hopes this makes sense.
Thanks in anticipation
Comment