473,416 Members | 1,486 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,416 software developers and data experts.

How to Not Print invisible Subreports

Hi

I have a Report made up of 8 Subreports for Knitting Instructions for knitting Garment parts such as Body, Sleeves, Collar, Bands. However, some garments do not have a collar (i.e. a Vee Necked cardigan), so I don't want this subreport to print.

I have made the Subreport invisible, but I still get a blank page where that subreport should appear.

How do I tell it not to print the invisible subreport, and not to leave a space where that subreport would print if it were visible.

I cannot use the Property for No Data, as there is data on the report (a field stating that the Collar Type = N/A, and an OLE picture of the Vee Band, showing why the Collar is Not Applicable). I just don't want to have to print that data.

Many thanks for your ideas

Viv.
Dec 24 '08 #1
5 2772
nico5038
3,080 Expert 2GB
Easiest way is to make the height of the subreport as less as possible (just one line) than make sure the "CanGrow" property is set to "Yes" and you're in business :-)

Nic;o)
Dec 24 '08 #2
Thanks Nico - That works fine.

However, as I am a complete beginner with VBA and am on a very steep learning curve, how would I tell it not to print the invisible subreport using code?

Viv
Dec 24 '08 #3
nico5038
3,080 Expert 2GB
Hi Viv,

Check out: http://bytes.com/topic/access/answer...b-report-blank
Instead of the Null (or 0) code there you would need to check or the sub report's query doesn't return records.

Nic;o)
Dec 24 '08 #4
Thanks Nico. Could not get the code to run without the same Error Message as your last person. However, Report is now doing exactly as I want, not showing Subreports where there is no Collar or Bands.

Thanks again.
Viv
Dec 24 '08 #5
nico5038
3,080 Expert 2GB
Glad I could help, success with your application !

Nic;o)
Dec 24 '08 #6

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

Similar topics

1
by: Evets Htims | last post by:
This is Access 2003. Have a report that includes three subreports stacked on top of one another (they display order items). In the report On Open I build a recordset (to get a value from a foreign...
3
by: manning_news | last post by:
Using A2K. I've been asked to modify a report currently requiring only one date parameter to now accept a date range. The main report has 2 subreports and is not bound to a table or query. The...
8
by: stemo76 | last post by:
I have created a report with subform/subreports. I can see all the data on the screen but when I try to print it to a printer or adobe distiller I get 'The Microsoft Jet Database engine could not...
0
by: ghadley_00 | last post by:
Hi, Have created 2 seperate reports that have different images as backgrounds. Would like to have both pages print out as 1 print job (so duplex printer will make each report page on opposite...
6
by: JonC | last post by:
I am developing an Access database and need to be able to print a form with various selections made as it appears on screen. The standard way of doing this would be to create a report based on the...
1
by: VictorS | last post by:
Hello to everyone! I have created an unbound report with 80 subreports. It is a seating chart. I used subreports instead of list boxes so I can programatically change a back color depending on the...
0
by: Whodat! | last post by:
I am sure that this has been hashed and rehashed but I am unable to find an answer to my question. I have a report that contains multiple subreports. The subreports may or may not contain data to...
6
by: Brett Barry: Go Get Geek! | last post by:
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...
10
by: Snoopy33 | last post by:
I have a DB that I developed on access XP (2002) and deployed over a year ago. No one has had problems printing any of the reports within the DB until we started loading 2007 on new computers. ...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...
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,...
0
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...

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.