Frankythekid
12-29-2004, 10:39 AM
I'm trying to print a specific report, not the whole list. I'm using the preview function first but it will show all records.
Currently I'm using this code:
Private Sub Command89_Click()
DoCmd.OpenReport "PO Log", acViewPreview, "[PO Number]=Forms!PO Log![PO Number]"
End Sub
But it shows all of the records, I just need the one with the PO Number i'm currently working on, only that one. So I can choose print and only print that record.
I guess this is a silly question, but i don't know why it will not work.
I appreciate the help...
Currently I'm using this code:
Private Sub Command89_Click()
DoCmd.OpenReport "PO Log", acViewPreview, "[PO Number]=Forms!PO Log![PO Number]"
End Sub
But it shows all of the records, I just need the one with the PO Number i'm currently working on, only that one. So I can choose print and only print that record.
I guess this is a silly question, but i don't know why it will not work.
I appreciate the help...