D
Doctor
I have a subform that shows churches that participated in an activity.
I have a report that is designed to print mailing labels for all churches in
the database.
I would like to place a button on the subform that will open the report but
include only the records for churches in the subform. This subform is not
filtered. Both the subform and the report include the field ChurchID. A2K3
Help.
******
This code only prints the current record selected in subform.
stWhere = "[ChurchID]=" & Me![ChurchID]
stDocName = "rptCharterChurchLabels 5160"
DoCmd.OpenReport stDocName, acPreview, , stWhere
Thanks in advance.
I have a report that is designed to print mailing labels for all churches in
the database.
I would like to place a button on the subform that will open the report but
include only the records for churches in the subform. This subform is not
filtered. Both the subform and the report include the field ChurchID. A2K3
Help.
******
This code only prints the current record selected in subform.
stWhere = "[ChurchID]=" & Me![ChurchID]
stDocName = "rptCharterChurchLabels 5160"
DoCmd.OpenReport stDocName, acPreview, , stWhere
Thanks in advance.