I am trying to implement the code to "Print only the Current Record in a
report as posted by Dav Ashish. But I am having a problem. I get a
parameter Entry box asking me to enter the OrderID, then the report print
all the records.
What am I doing wrong?
My Code:
Dim stDocName As String
stDocName = "PackListRep"
Dim strWhere As String
strWhere = "[OrderID]=" & Me!OrderId
DoCmd.OpenReport stDocName, , , strWhere
I have a control named OrderID on the form and am running the report
PackListRep. I'm using Access 2002 on XPProfessional.