473,583 Members | 3,386 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printing alternate text on report with no data

I have a report that prints daily. The report needs to print whether or
not there are records available. I read in an old post on this group
that putting an unbound text box in the report footer, with the
following code in the OnNoData event would work like a charm --

Private Sub Report_NoData(C ancel As Integer)
Dim NoInboundLoads As TextBox
Me!NoInboundLoa ds = "No inbound loads scheduled for today."
Cancel = False
End Sub

However, I can't figure out why, but this text prints even when there
IS data available, as well as when there is not. I didn't think the
OnNoData event fired if there was data for the report?

I tried making the unbound control Not Visible by default, and adding
this line to the above code just after the Dim statement:
Me!NoInboundLoa ds.Properties Visible = True

But, I get an error message saying this is not supported.
How can I accomplish this?

Thanks,
Carla

Nov 13 '05 #1
2 3297
Hers2keep wrote:
I have a report that prints daily. The report needs to print whether or
not there are records available. I read in an old post on this group
that putting an unbound text box in the report footer, with the
following code in the OnNoData event would work like a charm --

Private Sub Report_NoData(C ancel As Integer)
Dim NoInboundLoads As TextBox
Me!NoInboundLoa ds = "No inbound loads scheduled for today."
Cancel = False
End Sub

However, I can't figure out why, but this text prints even when there
IS data available, as well as when there is not. I didn't think the
OnNoData event fired if there was data for the report?

I tried making the unbound control Not Visible by default, and adding
this line to the above code just after the Dim statement:
Me!NoInboundLoa ds.Properties Visible = True

But, I get an error message saying this is not supported.
How can I accomplish this?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The correct syntax for setting the property is

Me!NoInboundLoa ds.Visible = True

Be sure the Visible property of the TextBox is set to False, otherwise,
it will always be visible.

For the message always showing:

Open the report in design view.
Open the Properties dialog box.
Click on the TextBox that holds the message.
Look at the ControlSource property (under the Properties dialog box's
Data tab).

I'll bet it has the message. If so, delete the message & save the
report. If not, I don't know what's going on.

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQjHiwIechKq OuFEgEQKlqgCgkK wZtsoctodTBfUxQ J02KQfTlBgAn1Ms
WL6kx90nmJxEkHd DJ135Cn62
=5KMZ
-----END PGP SIGNATURE-----
Nov 13 '05 #2
Okay - now that part is all working on the individual reports. Here's
my next question.

There are two reports for each of the 6 locations - Inbound & Outbound.
Individually, they all work as they should. However, when I combine the
Inbound and Outbound for each location as two subreports in a main
report, the 2nd report doesn't print at all if it has no data.

End result needs to be one main report continaining a subreport for
each location, each location subreport containing the two subreports of
their inbound & outbound loads for a particular day.

Carla

Nov 13 '05 #3

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

Similar topics

4
2767
by: Fuzzyman | last post by:
I looked through the manual, I looked on the web and could find very little on this subject.... The closest I could find was : http://www.faqts.com/knowledge_base/view.phtml/aid/4549. Saying that printing (to a printer :-) wasn't easy (at least on windows - let alone *cross* platform) - and that was dated 2000. Oh and -...
11
22251
by: Curious Angel | last post by:
Hi, I have a version of my resume that is (almost) web ready and I'm pleased with its appearance on the screen (well, sort of heh heh, it's my first HTML). I also created a tighter, scaled-down version from my original (Pagemaker 6.0) as an Adobe PDF, so employers can have something that is graphically identical to the original PM6 document....
1
9565
by: DCraig | last post by:
I'm having problems printing to a line printer from both Crystal Reports and SQL Server reporting services using dotnet. When I try and print a report from an application with Crystal I get the error message "the data area passed to a system call is too small", and nothing else. With SSRS when I try to print the report from the IDE I get the...
2
2992
by: DBQueen | last post by:
I have a database which will be printing out labels for SMALL test tubes (1/4" high). We have yet to find a reasonably-priced printer (labelwriter) which can effectively print this on ROLLS of labels....due to slippage, soon you have the printout missing the label. So we are thinking that we have to use sheets of labels. HOWEVER, one job...
3
1781
by: ChadDiesel | last post by:
I've been posting questions here the last week, but if you don't know my situation: I have a "Print Labels" button on the subform that sends the appropriate box information on the subform to a report called "Labels." This is how we are going to print our shipping labels. I also have a label which is a report called "Destination_Label" that...
5
6406
by: dancole42 | last post by:
I want to create a button that will print multiple forms. Each form is a list of various orders, and there are three separate forms: -Standard Orders -Rush Orders -VIP Rush Orders Each is based off its own query. For certain company reasons, each order type (Standard, Rush, VIP
2
1435
by: mahesh123 | last post by:
Hi Folks, I am generating the text reports from the visual basic 6.0. while printing the text report the Char(12) ie page break character is not recognising. Is there any alternate Solution for recognise the page breaker while printing the text reports. Help me immediately. Thanks ---------- Mahesh
1
13649
by: Glenn | last post by:
I am writing a program for field work that will use a receipt printer. I need to be able to adjust the page settings prior to printing depending on how much needs to be printed. I have been able to print to this printer but cannot figure out how to overwrite the page settings. Below is the code so far: Private Sub...
0
2832
it0ny
by: it0ny | last post by:
Hi guys, thanks I am fairly new to this forum so I hope I chose the right place to post this question. I try to make my program printout a deposit's report. I created a class to store the printing printing data and the actual database data in a recordset. the class looks like this: Public Class BRPDD 'Balance Report PrintingDocument Data ...
0
7894
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...
0
7821
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...
1
7929
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...
0
8190
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...
0
6577
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...
1
5697
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...
0
5370
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...
1
2328
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
1
1424
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.