Hi I have a db set up. I enter details for an invoice. Select Print Invoice and It will bring up a Report document with all details on.
What It is doing now is when I select a customer from a combo box auto populate data. It prints all Invoices for that person. It originally
did only print the current record. Is there any way in adding a code to the following so it only prints the current record on screen.
Private Sub cmdPrintRecord_Click()
Dim strReportName As String
Dim strCriteria As String
strReportName = "rptPrintRecord"
strCriteria = "[CustomerName]='" & Me![CustomerName] & "'"
If Me.Dirty Then Me.Dirty = False
DoCmd.OpenReport strReportName, acViewPreview, , strCriteria
End Sub
Or can I add a tick box and a query so it only prints the specific record.What ever is easy would be the best
Much appreciated