G
Guest
Hey all:
Besides the code, is there any thing else I must do to print secific records.
This is the code I got from this NG.
DoCmd.OpenReport "Sales", acPreview
Reports![YourReport].Filter = "Customer = " & Me![Customer]
Reports![YourReport].FilterOn = True
Customer is my primary key.
When I click my Print button I get this error message:
Syntax error (missing operator) in query expression '(Customer = blah blah)'.
I'm supposed to use a filter (I think) as well but I'm not sure how it
works(or how to implement).
Would like to just be able to ONLY print the current record.
Please help.
Besides the code, is there any thing else I must do to print secific records.
This is the code I got from this NG.
DoCmd.OpenReport "Sales", acPreview
Reports![YourReport].Filter = "Customer = " & Me![Customer]
Reports![YourReport].FilterOn = True
Customer is my primary key.
When I click my Print button I get this error message:
Syntax error (missing operator) in query expression '(Customer = blah blah)'.
I'm supposed to use a filter (I think) as well but I'm not sure how it
works(or how to implement).
Would like to just be able to ONLY print the current record.
Please help.