Hi All
I’m trying to create a report from a sub-form button for a scientific journal database. I have searched in the old topics, and they provided some solutions – but it still isn’t working. Any help is welcomed.
I have a form (Paper). For each record in Paper there is a subform (Referee New) with a list of referees of the paper.
I created a button for each referee in the subform Referee New. In the OnClick event of this button it should print preview a letter to this referee with details about that paper. The event has the following structure (PersonID is in the query’s Report):
DoCmd.OpenReport stDocName, acPreview, , "[PersonID]= forms![Referee New subform].[Paper]![RefereeID]"
What is happening in practice is that, when I press the button, two problems occur:
1)A window “Enter Parameter Value” appears, instead of an automatically generated report.
2)If I type the RefereeID number there, then the report is created with all the papers that this referee has refereed, instead of showing only that one described in the Paper report.
Thanks in advance for any help.
I’m trying to create a report from a sub-form button for a scientific journal database. I have searched in the old topics, and they provided some solutions – but it still isn’t working. Any help is welcomed.
I have a form (Paper). For each record in Paper there is a subform (Referee New) with a list of referees of the paper.
I created a button for each referee in the subform Referee New. In the OnClick event of this button it should print preview a letter to this referee with details about that paper. The event has the following structure (PersonID is in the query’s Report):
DoCmd.OpenReport stDocName, acPreview, , "[PersonID]= forms![Referee New subform].[Paper]![RefereeID]"
What is happening in practice is that, when I press the button, two problems occur:
1)A window “Enter Parameter Value” appears, instead of an automatically generated report.
2)If I type the RefereeID number there, then the report is created with all the papers that this referee has refereed, instead of showing only that one described in the Paper report.
Thanks in advance for any help.