Link to home
Start Free TrialLog in
Avatar of yddadsjd95
yddadsjd95

asked on

Format Subreports

Great Day! I have a report that has two subreports in it. In design view, the subreports are stacked and I placed them about 1/4 inch apart; however, when the report runs, if the subreport on the top has more than three rows that are displayed, then the subreport on the bottom is displayed like it is in design view; meaning that it is about 1/4 inch from the top subreport. However, if less than three rows are displayed in the top subreport, then the bottom subreport is displayed about an inch or more below.

What can I do to have the bottom subreport display 1/4 inch below the top one in all situations?

Thanks in advance for your assistance.

r/David
Avatar of Dale Fye
Dale Fye
Flag of United States of America image

have you set the CanGrow and CanShrink properties of both subreports to Yes?
Avatar of yddadsjd95
yddadsjd95

ASKER

Thanks for reaching out to me Fyed. Yes both subforms are to yes for CanGrow and CanShrink. This may be related: the page footer of the main report has some total lines about 1/4 inch below the page footer line, but it prints about an inch below the second subform, so I appear to be having a systemic problem here.

r/David
Can you dummy up a new database with your report, and enough sanitized data from your original to replicate the problem, so we can see it with actual data?

1.  Just open a new mdb, import the tables, queries, and reports necessary to replicate the problem.  

2.  Go through the tables you copied and delete all but a couple of records.  Leave enough records in all of the tables to duplicate two versions of the report, one which works, and one which doesn't.

3.  Then go into your tables and change any of the remaining data that might be proprietary or personal in nature (company names, phone #, email, account #), that kind of thing.

Then post it back here.
Here it is.

1. Open frmRepairOrder-Select4Report2
2. Select a Repair Order
3. Click Open Report

Thanks a million!

r/David
PrintInvoice-Sample-8-9-11.zip
Without digging too deeply into your design here...
As a test...
If the tables are normalized and related properly, you can use the Report wizard to create a "Grouped report".
You can select the needed fields from each (related) table and the wizard will ask you how you want to view the data.
If you select the Main table, it will create a report hierarchically grouped to show the same data as in your report with subreports.
If this report is not correct, then something is awry in your table design/relationships...
ASKER CERTIFIED SOLUTION
Avatar of Nick67
Nick67
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It works perfectly Nick. Thank you very much and have a great day!
I think the key (No pun intended) here was to link the parts subreport to the same "RepairOrderId" as the first subreport  (RepairOrderSubreport)

In the case of Nick's report, it is "JobID"