473,883 Members | 2,819 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot hide empty subreport

RicelandIT
11 New Member
I've reviewed the posts on www.bytes.com.
My problem is the same as that reported by others:
a report with an empty subreport cannot suppress the display of the empty subreport. I've set the "can shrink" and "can grow" properties to "yes" on both the footer and the subreport's control object. I've also minimized the physical size of the subreport in the footer. These all seem to make no difference. So, I added code to the "format footer" event of the report, attempting to hide the subreport if the .HasData property is false. I've also tried to add code (suggested in other related threads on this web site), which seems to compile without problem, but is unable to make the subreport non-visible. Please see attached JPG for example of empty "Additions (Subtractions)" subreports. I'm desperate! If you help me I will be your friend for life. Seriously.

Feb 13 '12
33 9191
RicelandIT
11 New Member
Sorry I have been out of town for 4 days, but have finally returned.

Well, you were correct. The reports WERE there, but I could not see them due to the view. And, the "Compact and Repair" was also where you indicated.

The attached database has been saved in 2003 format. I am attempting to run the report "Employee Totals By Day". Notice that employee "Guillory, Dexter" has no items in his subreport. Such subreports are the ones I want to hide.
Attached Files
File Type: zip weighin.zip (30.4 KB, 115 views)
Feb 22 '12 #21
NeoPa
32,584 Recognized Expert Moderator MVP
The Subreport = "TotalEmpItemsDa ysubreport2"?

As I was unfamiliar with what to look for, I added a label into the "weighin_day Footer" section. I noticed that this section was only visible, at all, for records :
  1. Clinkscales, Jason.
  2. Griffin, Andy.
But not for :
  1. Guillory, Dexter J.
  2. Rudd, Reba H.

That all seems to be working exactly as expected, as far as I can see.
Feb 23 '12 #22
RicelandIT
11 New Member
You are correct, there is no data for Guillory and Rudd, but the "Additions or (Subtractions)" still shows up for them and for every single day for every employee, regardless of whether or not there is any data below it. It's this "Additions or (Subtractions)" that I'm trying to hide when there is no data.
Feb 24 '12 #23
NeoPa
32,584 Recognized Expert Moderator MVP
I can't see what you're referring to. Perhaps you could identify it by section and object names.
Feb 24 '12 #24
RicelandIT
11 New Member
The circled areas are the subreports. Guillory has no data, so I want his subreport to be hidden.

Attached Images
File Type: jpg empty footer.jpg (36.9 KB, 3462 views)
Feb 24 '12 #25
NeoPa
32,584 Recognized Expert Moderator MVP
I don't see what you see. Much of you blue stuff is unrecognised by my system and comes out black, but the main point is that the subreports don't show when they shouldn't. See the picture for an illustration of what I see :

Attached Images
File Type: jpg RicelandIT.jpg (30.9 KB, 2749 views)
Feb 24 '12 #26
RicelandIT
11 New Member
In Access 2003, it DOES, indeed, appear to be working properly. However, as you can see from my earlier image, the empty footers show up for every employee in Access 2007. Could there be some kind of database setting or reports setting that is causing the difference? At this point, I just can't worry about it any more. I don't have any more time to spend on it, but I really appreciate all your replies. Many individuals were very helpful.
Feb 27 '12 #27
NeoPa
32,584 Recognized Expert Moderator MVP
RicelandIT:
At this point, I just can't worry about it any more.
I hear you.

NB. For future reference (we can't worry about it this time) please note point #5 in the linked article (from post #13) where it says to make sure the problem is still evident if you've made any changes from points #1 to #4. It might have saved you some precious time, but hopefully will on other occasions.
Feb 27 '12 #28
Mihail
759 Contributor
Good news for you Rice. And a big question for Mycrosoft: WHY ?!?!?

I find out that the On Format event not fire in Report View.
If you will try to run the report in Print Preview you will have a big surprise.

Can I have a little bit from your friendship ?
The rest is for NeoPa, of course.

Good luck !
Feb 27 '12 #29
NeoPa
32,584 Recognized Expert Moderator MVP
Is there another, more appropriate, event that could be used in A2007 then Mihail?
Feb 27 '12 #30

Sign in to post your reply or Sign up for a free account.

Similar topics

2
11770
by: bobh | last post by:
Hi All, I have a report which has several sub-reports on it, Each sub-report has its own record source and child/parent link. Sometimes a sub-report may not have data for an entered policy nbr and on the report thier is just an empty space where that sub-report would be when that happens. How do I get the sub-report to still display on the report when it has no data????
1
3516
by: Chus Chuscazo via .NET 247 | last post by:
Hi there! I am building fdf files and i need to print them out. The problem is that in order to print them i have to executeacrobat reader. I am fine with it, but the problem is that i cannot hide thereader application, it always stays in the bottom bar. The code i'm doing is the following: string f_fdf = @"C:\PROJECTSdotNET\PDF_XML_PDF\PDFtoXML\chus.fdf"; Process p = new Process(); p.StartInfo.Arguments = " /h "; p.StartInfo.FileName...
1
1861
by: Dgates | last post by:
This request might belong in a "SQL"-related newsgroup, but it's such a pain using Agent to subscribe to a new group (and download its 50,000 messages!) just to ask one question. So, since it deals with an ASP.NET app, I thought I'd ask here. ============================================== I am using Web Data Adminstrator, which I downloaded recently from the Microsoft site. I get an error when I create tables or columns:
0
4891
by: Greg Burns | last post by:
I cannot hide the first column of my DataGridView. (VS.NET 2005 RC1) If you take a look at the sample from here http://lab.msdn.microsoft.com/vs2005/downloads/101samples/default.aspx Windows Forms->UsingDataGridView example They are hiding the employee ID by setting that column visibility to false, seems simple enough. But I can hide every other column in my own project, just not the first one!
3
3255
by: BB | last post by:
Hi, I am using repeater control.in my aspx page. one of the column of control displays images. Filenames of images are stored in table. Now when I run it and if display Image is blank. I see place holder and red cross in it in Internet Explorer. But it works fine in FireFox. Is there any way to fix this so that in both browers I can see same ie hide placeholder and red cross? I have tried to use alternatetext property for image control. ...
1
1609
by: naboumerhi | last post by:
Hi, I have a a custom report trying to hide empty fields and shift the next field up. It still shows and empty space. Example: company1 company2 company3
3
3700
by: Michael S | last post by:
Hi. I am working on a class library where I have a namespace called MyProject.Implementation. This namespace only have internal and private classes. However, when I use my .dll assembly in a WinForm application, that application can still see the namespace via Intellisense. For the consumer it appears to be an empty namespace.
11
13835
by: DanielM | last post by:
How To hide a subreport? I found how to know if the subreport has no data (Me.subreportname.Report.HasData) what I didn't find is how to make the sub report unvisibile if it has no data. I tried: If Not Me.subreportname.Report.HasData then Me.subreportname.Report.Visible = False End If but it gave me an error
0
2492
by: Academia | last post by:
I ran Dim Strs As String() = Nothing ....fill Strs with file paths DataO.SetData(DataFormats.FileDrop, True, Strs) Clipboard.SetDataObject(DataO) When I tried to paste into Wordpad I got Packager cannot package empty files, error
1
7562
Tarantulus
by: Tarantulus | last post by:
Hi Guys, I'll keep this short and sweet: class connection{ public $database; public $username; public $password;
0
9797
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10422
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9586
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7977
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7136
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
5807
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...
1
4622
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4228
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3241
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.