Report/Sub-Report

bkessinger
StarLounger
Posts: 71
Joined: 27 Aug 2010, 09:13

Report/Sub-Report

Post by bkessinger »

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.
You do not have the required permissions to view the files attached to this post.

Pat
5StarLounger
Posts: 1148
Joined: 08 Feb 2010, 21:27

Re: Report/Sub-Report

Post by Pat »

Change the Master link of the sub report to OffenderID.

bkessinger
StarLounger
Posts: 71
Joined: 27 Aug 2010, 09:13

Re: Report/Sub-Report

Post by bkessinger »

Thanks Pat. That got the sub-report to print, but it's displaying double entries.

Pat
5StarLounger
Posts: 1148
Joined: 08 Feb 2010, 21:27

Re: Report/Sub-Report

Post by Pat »

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?

bkessinger
StarLounger
Posts: 71
Joined: 27 Aug 2010, 09:13

Re: Report/Sub-Report

Post by bkessinger »

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.

User avatar
HansV
Administrator
Posts: 78493
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Report/Sub-Report

Post by HansV »

See this version - it groups the data by OffenderID and omits the subreport.
Copy of Hearing.zip
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

Pat
5StarLounger
Posts: 1148
Joined: 08 Feb 2010, 21:27

Re: Report/Sub-Report

Post by Pat »

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 do not have the required permissions to view the files attached to this post.

bkessinger
StarLounger
Posts: 71
Joined: 27 Aug 2010, 09:13

Re: Report/Sub-Report

Post by bkessinger »

Pat & Hans

Thanks much. Both are excellent solutions.