473,947 Members | 3,521 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Subreport not showing - but my frustration is

Damn this is frustrating. I have used subreports for years and never had
this problem. I have used these things more times than I can remember. Never
have I had this problem. Arrrgggghhhhhhh hhhhhhhhhhhhhhh .....etc and ahhh

This should be simple, but... This is a report for a sales order. Parent
report actually shows the header and detail, detail is not in the subreport.
In the subreport is a breakup of committed product by UseBy date.

Master and Child link fields are both 'OrderInvoiceNo ;LineNo'. There are
records to show for the order the report is generated on.

The fields do exist in both the parent and sub reports.

If I remove the link fields the report shows heaps of records, as expected,
including the ones that should show for each detail. Add just the
OrderInvoiceNo and nothing shows. Add anything in the link fields and
nothing shows.

Why? Is it because it is Monday? Or maybe because I was having a good day?
Or am I just missing something so obvious here that it isn't?

And yes, I have restarted Access, which usually fixes illogical problems.
And gone and had some comfort food - snakes. Haven't got to the chocolate
yet. Cholesterol is too high for pizza. Chocolate doesn't count.

Jeff Pritchard
_______________ _
Asken Research Pty. Ltd.
Access Database Developers (still)
www.asken.com.au

Feb 20 '06 #1
2 3263
Hi Jeff

No doubt there will be an obvious reason once the dust settles. :-)

In the mean time, is there any chance Access could misunderstand the data
type of any of these fields? Particularly:
- calculated fields may need to be typecast;
- query parameters may need to be declared (esp if applied to calculated
fields, or if reading a value from a control on a form);
- text boxes may need their Format property set if unbound, bound to an
expression, assigned programmaticall y, or bound to a calculated field.

Do the *controls* have the same name as the fields? If not, are you using
the control names in LinkMasterField s/LinkChildFields ?

How are you limiting the date range for the subreport?

The subreport CanGrow?

You've probably tried a compact'n'repai r (just in case there's a bad index.)

No doubt you already have the Name AutoCorrupt boxes unchecked (Tools |
Options | General.)

If none of that goes anywhere, what happens if you create a query based on
the main report's query joined to the subreport's query on OrderInvoiceNo
and LineNo?

BTW, there's a rumour that dark chocolate is supposed to be good for us?
:-)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jeff" <je************ @asken.com.au> wrote in message
news:43******** *************** @per-qv1-newsreader-01.iinet.net.au ...
Damn this is frustrating. I have used subreports for years and never had
this problem. I have used these things more times than I can remember.
Never have I had this problem. Arrrgggghhhhhhh hhhhhhhhhhhhhhh .....etc and
ahhh

This should be simple, but... This is a report for a sales order. Parent
report actually shows the header and detail, detail is not in the
subreport. In the subreport is a breakup of committed product by UseBy
date.

Master and Child link fields are both 'OrderInvoiceNo ;LineNo'. There are
records to show for the order the report is generated on.

The fields do exist in both the parent and sub reports.

If I remove the link fields the report shows heaps of records, as
expected, including the ones that should show for each detail. Add just
the OrderInvoiceNo and nothing shows. Add anything in the link fields and
nothing shows.

Why? Is it because it is Monday? Or maybe because I was having a good day?
Or am I just missing something so obvious here that it isn't?

And yes, I have restarted Access, which usually fixes illogical problems.
And gone and had some comfort food - snakes. Haven't got to the chocolate
yet. Cholesterol is too high for pizza. Chocolate doesn't count.

Jeff Pritchard
_______________ _
Asken Research Pty. Ltd.
Access Database Developers (still)
www.asken.com.au

Feb 20 '06 #2
Hi Allen

Oh what a difference a day makes.

I thought I had done all of those yesterday, but guess what - there was a
control named OrderInvoiceNo and that was the problem. Now I am sure I
checked that all controls had a prefix, 'txt' in this case. I think someone
is playing games with me. I'm not paranoid, really I'm not.

Time for some chocolate. We have to celebrate these little successes - don't
we.

Jeff Pritchard
_______________ _
Asken Research Pty. Ltd.
Access Database Developers
http://www.asken.com.au

"Allen Browne" <Al*********@Se eSig.Invalid> wrote in message
news:43******** *************** @per-qv1-newsreader-01.iinet.net.au ...
Hi Jeff

No doubt there will be an obvious reason once the dust settles. :-)

In the mean time, is there any chance Access could misunderstand the data
type of any of these fields? Particularly:
- calculated fields may need to be typecast;
- query parameters may need to be declared (esp if applied to calculated
fields, or if reading a value from a control on a form);
- text boxes may need their Format property set if unbound, bound to an
expression, assigned programmaticall y, or bound to a calculated field.

Do the *controls* have the same name as the fields? If not, are you using
the control names in LinkMasterField s/LinkChildFields ?

How are you limiting the date range for the subreport?

The subreport CanGrow?

You've probably tried a compact'n'repai r (just in case there's a bad
index.)

No doubt you already have the Name AutoCorrupt boxes unchecked (Tools |
Options | General.)

If none of that goes anywhere, what happens if you create a query based on
the main report's query joined to the subreport's query on OrderInvoiceNo
and LineNo?

BTW, there's a rumour that dark chocolate is supposed to be good for us?
:-)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jeff" <je************ @asken.com.au> wrote in message
news:43******** *************** @per-qv1-newsreader-01.iinet.net.au ...
Damn this is frustrating. I have used subreports for years and never had
this problem. I have used these things more times than I can remember.
Never have I had this problem. Arrrgggghhhhhhh hhhhhhhhhhhhhhh .....etc and
ahhh

This should be simple, but... This is a report for a sales order. Parent
report actually shows the header and detail, detail is not in the
subreport. In the subreport is a breakup of committed product by UseBy
date.

Master and Child link fields are both 'OrderInvoiceNo ;LineNo'. There are
records to show for the order the report is generated on.

The fields do exist in both the parent and sub reports.

If I remove the link fields the report shows heaps of records, as
expected, including the ones that should show for each detail. Add just
the OrderInvoiceNo and nothing shows. Add anything in the link fields and
nothing shows.

Why? Is it because it is Monday? Or maybe because I was having a good
day? Or am I just missing something so obvious here that it isn't?

And yes, I have restarted Access, which usually fixes illogical problems.
And gone and had some comfort food - snakes. Haven't got to the chocolate
yet. Cholesterol is too high for pizza. Chocolate doesn't count.

Jeff Pritchard
_______________ _
Asken Research Pty. Ltd.
Access Database Developers (still)
www.asken.com.au


Feb 20 '06 #3

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

Similar topics

4
370
by: Wayne | last post by:
rr@kristin.school.nz (Wayne) wrote in message news:<7ec36840.0403301824.16f2cd9f@posting.google.com>... > I have a subreport in my report and when it contains exactly one row, > it works fine. In every other case, it displays all but the last row. > The subreport grows large enough to show this last row but leaves it > blank. > Can anyone shed some light on this for me? > Wayne Since posting the original message I have had no replies....
7
3581
by: Ellen Manning | last post by:
I've got an A2K report showing students and their costs. Student info is in the main report and costs are in a subreport for each student. The user inputs the program desired then only those students in that program are printed. I want the subreports headings to print only for the first student on the page. Is there a way to suppress printing of the headings on subsequent students on that page? I tried the following in both the...
10
7566
by: sara | last post by:
I am STUCK! I have an Access2000 report; main report and subreport. The sub report is 2 columns, with a footer controlled by a value in a field. The Report Footer should have SUM of values in the report. My problem is that the Report footer of the Subreport doesn't print! The main report prints fine; the sub-report prints fine, except there
2
1671
by: GB | last post by:
Hello: I created a report as a perent report with subreport in the middle of detail section of the perent report. The subreport has a query as the recordsource, which can return different number of records depends on input parameter. My problem is the following: Depends on the number of records are showing by the subreport the position of controls on the bottom part of my parent report
2
2343
by: Jana | last post by:
Using Access 97. Background: I have a main report called rptTrustHeader with a subreport rptTrustDetails in the Details section of the main report. The main report is grouped by MasterClientID. There are also several other subreports in the main report's footer. The rptTrustDetails subreport has two grouping levels MasterClientID and ClientID, with headers and footers for each grouping level. In the ClientID footer, I have an...
3
2001
by: Matt | last post by:
Hi All, I currently have 2 reports. One report shows Transaction History (I will refer to as "TH") and the other shows Account Summary (I will refer to as "AS"). I want to combine the reports into one report using a sub report. (I still want to view "AS" seperately by itself). What I have working: On the "TH" report I have added "AS" as a subreport, linking them on Social Security Number. It is showing the "TH" report correctly,...
2
2121
by: Ron | last post by:
I have a report let's call rptOne. On rptOne I have a subreport called srptOne. On srptOne I have a subreport called srptTwo. Sometimes, srptTwo is there and shows it's data and sometimes not, based on whether there is data in the query/table that srptTwo is based on of course. All works fine. However, now I'd like to control whether certain fields are visible on srptOne based on whether srptTwo is there or not. Is there a way to do...
3
9445
by: Simon | last post by:
Dear reader, The syntax for the VBA code to change the RecordSource of a Master Report is: Me.RecordSource = "TableOrQueryName"
1
1816
by: eogyamfi | last post by:
i have subreport within the main report. The grand total for the main report is showing on the report. The grandtotal for the subreport is not showing even though on the subreport itself it shows when it is run. Pls guide as to how to get the grand total of the subreport showing as part of the main report
0
10164
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11577
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11169
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11351
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7431
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6118
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4540
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3544
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.