G
Guest
I am trying to add a button to a fromt o print a report for that one form.
I am using
Dim stDocName As String
stDocName = "Recipe Cards"
DoCmd.OpenReport stDocName, acPreview, [Recipe] = Forms![Recipe]![Recipe]
Unfortunately too many object in the file are named Recipe. When I do this,
I get the report for all the records. If I hard code it to Say [Recipe] =
"Banana Bread" then the report only prints when I am on the Banana Bread
record. Like it is boolean. If I hard code the restriction in the report on
the filter line [Recipe] = "Banana Bread" it prints just that one record.
This is making me a bit crazy!
I am using
Dim stDocName As String
stDocName = "Recipe Cards"
DoCmd.OpenReport stDocName, acPreview, [Recipe] = Forms![Recipe]![Recipe]
Unfortunately too many object in the file are named Recipe. When I do this,
I get the report for all the records. If I hard code it to Say [Recipe] =
"Banana Bread" then the report only prints when I am on the Banana Bread
record. Like it is boolean. If I hard code the restriction in the report on
the filter line [Recipe] = "Banana Bread" it prints just that one record.
This is making me a bit crazy!