Good Morning all,
Attached is a small db with a report/sub-report and the data source query. Two Issues:
1. When the report is opened it asks for a parameter (tblOffenses). I'm stumped.
2. The subreport does not display.
Any and all suggestions are welcome as usual.
Bill K.
Report/Sub-Report
-
- StarLounger
- Posts: 71
- Joined: 27 Aug 2010, 09:13
Report/Sub-Report
You do not have the required permissions to view the files attached to this post.
-
- 5StarLounger
- Posts: 1148
- Joined: 08 Feb 2010, 21:27
Re: Report/Sub-Report
Change the Master link of the sub report to OffenderID.
-
- StarLounger
- Posts: 71
- Joined: 27 Aug 2010, 09:13
Re: Report/Sub-Report
Thanks Pat. That got the sub-report to print, but it's displaying double entries.
-
- 5StarLounger
- Posts: 1148
- Joined: 08 Feb 2010, 21:27
Re: Report/Sub-Report
I cant understand why you have a sub report.
You have the same record source for the main report as well as the sub report.
How many records should there be in the detail section?
You have the same record source for the main report as well as the sub report.
How many records should there be in the detail section?
-
- StarLounger
- Posts: 71
- Joined: 27 Aug 2010, 09:13
Re: Report/Sub-Report
There should be 2 records for each person in the detail section.
I thought a sub-report would be easier. I also tried the subreport with qryOffenses as the Data Source with the same results.
I thought a sub-report would be easier. I also tried the subreport with qryOffenses as the Data Source with the same results.
-
- Administrator
- Posts: 78493
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Report/Sub-Report
See this version - it groups the data by OffenderID and omits the subreport.
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans
Hans
-
- 5StarLounger
- Posts: 1148
- Joined: 08 Feb 2010, 21:27
Re: Report/Sub-Report
What you are doing is not right.
You need to have the Offenders in the detail section followed by the subreport in the detail section.
You will need to put the bottom stuff in the detail section after the subform.
I have created a query for the offender call qryHeader.
You need to have the Offenders in the detail section followed by the subreport in the detail section.
You will need to put the bottom stuff in the detail section after the subform.
I have created a query for the offender call qryHeader.
You do not have the required permissions to view the files attached to this post.
-
- StarLounger
- Posts: 71
- Joined: 27 Aug 2010, 09:13
Re: Report/Sub-Report
Pat & Hans
Thanks much. Both are excellent solutions.
Thanks much. Both are excellent solutions.