473,397 Members | 1,985 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Force multiple subreports data to print on main report

Hello,

I have a main report with a Record Source, a DateToday table, that has
the current Month and Year. I have about 60 queries, each pulling
different data via ODBC, that I am creating subreports that go on the
main report. The problem is that when I run the report the data shows
on the screen but not the print preview. I am aware that the main
report is not linked to the subreports because of the Link Master,
Child Fields issue. Unfortunately, only some of the queries are based
on the DateToday table used by the main report, but only as parameters
(nothing from that table is displayed)

Is there another way, hopefully more efficient, of linking all of my
subreports to the main report. I've tried adding another table and
incorporating the common field, but that field I don't want to print
on the main report. Plus, some of the queries are blank but I have the
nulls showing up as 0.00 on the subreports (and main) via formatting.
I'm hoping I can just add some code that "tells' the main report to
display all of the subreports. Is this possible?

Thanks,
Brett
Jun 27 '08 #1
6 5428
On Jun 18, 10:26*pm, "Brett Barry: Go Get Geek!"
<brettcba...@gmail.comwrote:
Hello,

I have a main report with a Record Source, a DateToday table, that has
the current Month and Year. I have about 60 queries, each pulling
different data via ODBC, that I am creating subreports that go on the
main report. The problem is that when I run the report the data shows
on the screen but not the print preview. I am aware that the main
report is not linked to the subreports because of the Link Master,
Child Fields issue. Unfortunately, only some of the queries are based
on the DateToday table used by the main report, but only as parameters
(nothing from that table is displayed)

Is there another way, hopefully more efficient, of linking all of my
subreports to the main report. I've tried adding another table and
incorporating the common field, but that field I don't want to print
on the main report. Plus, some of the queries are blank but I have the
nulls showing up as 0.00 on the subreports (and main) via formatting.
I'm hoping I can just add some code that "tells' the main report to
display all of the subreports. Is this possible?

Thanks,
Brett
what's the issue with master / child fields ?
all subreports should link to the master
just put all 60 subreports on your reports form, with really thin
heights and 'can grow' set to yes
Jun 27 '08 #2
The problem is that there is no common field between the subs and the
master for me to chose in the wizard when I create the subs. I have no
problem seeing the data on the screen, it just won't print.
Jun 27 '08 #3
Roger,

I figured out what went wrong. I had the subreports sized very small
on the main report, so the data wasn't printing. When I opened up the
subreport size in design view on the main report, then it worked.
Actually, Microsoft tech support helped me discover this.

Thanks,
Brett
Jun 27 '08 #4
On Jun 19, 3:20*pm, "Brett Barry: Go Get Geek!"
<brettcba...@gmail.comwrote:
Roger,

I figured out what went wrong. I had the subreports sized very small
on the main report, so the data wasn't printing. When I opened up the
subreport size in design view on the main report, then it worked.
Actually, Microsoft tech support helped me discover this.

Thanks,
Brett
doesn't matter how small the subreport is, if 'can grow' is set to
true, it will expand to the required size
Jun 27 '08 #5
I am not sure if there is an easier way to do this...but I have about
60 different queries and creating and formatting a subreport for each
one to go on a main report is way too time-consuming. Basically, I
have 8 columns with 8 rows of different data for each different
column. I just wish I could drag and drop each one of my queries on a
canvas and format into columns where the numbers line up and are
formatted correctly. Is this beyond the scope of Access?
Jun 27 '08 #6
After sleeping on it, I found a solution:

I was trying to create a subreport (unlinked) for each query. I solved
the problem by consolidating each column's data (8 rows) into one
query, adding the "control" table field that is used on the main
report, or "canvas", which was just a date function that I used under
the Report title. Then, I made that date (month) not visible and
organized all my rows of data in the subreport. I lined them up and
made them flush right (for numbers to line up in the column). I made
the subreport capable of shrink and put it on the main report. While
it took longer for the report to generate because of the consolidated
queries using ODBC and summed data, the end result was a much easier
to format report that looks better. It will also be easier to modify
in the future, if necessary.
Jun 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jacob Barnett | last post by:
Access 2000 main report does not display subreport data in preview and may or may not print... sometimes. Usually, the entire report is fine. The behavior does not seem to depend on particular...
1
by: shaqattack1992-newsgroups | last post by:
I know this is kind of a weird question, but is there anyway to give a subreport control of a main report? I posted my situation earlier about having drawings print out after a group. I have a...
2
by: Henrootje | last post by:
I have a report concerning a customer. In this report we find four subreports. They are in layout identical but data comes from different tabel. Now on the main report I count the totals of each...
2
by: AccessAl | last post by:
:confused: I have inheritted a system with reports that were probably written by a novice access programmer. My problem is a report with a dozen subreports in them. I had to add another subreport...
0
by: dunkleypilot | last post by:
Hey Again, I am currently working with an unbound report that incorporates several subreports. I would like to use a values that are generated in the subreports in the main report. How do I...
1
by: josecruz | last post by:
I have created a main report, which is controlled with a date range parameter from the main form. The report has several sub reports, which perform calculations (counts and averages at the subreport...
2
by: somanyusernamesaretakenal | last post by:
Access 2003. I have generated multiple crosstabs from the same main table. (I have multiple value fields) Then each of these crosstabs is created into a report. I am trying to combine all these...
2
by: kabradley | last post by:
Hello everyone. I have three reports that I would like to put into one main report. I tried creating the main report and then putting three seperate subreports in the detail section of the parent...
0
by: jimatqsi | last post by:
I once told a client how easy it is to make reports in Access. Since then, he's developed a savant-like ability to ask for reports that I find nearly impossible to do quickly and easily. Here is yet...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.