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

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(Cancel As Integer)
Dim NoInboundLoads As TextBox
Me!NoInboundLoads = "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!NoInboundLoads.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 3286
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(Cancel As Integer)
Dim NoInboundLoads As TextBox
Me!NoInboundLoads = "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!NoInboundLoads.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!NoInboundLoads.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:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

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

iQA/AwUBQjHiwIechKqOuFEgEQKlqgCgkKwZtsoctodTBfUxQJ02KQ fTlBgAn1Ms
WL6kx90nmJxEkHdDJ135Cn62
=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
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...
11
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...
1
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...
2
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...
3
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...
5
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...
2
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...
1
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...
0
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.