Solved

Need to display the text "NO DATA" on a report that has no records

Posted on 2008-10-01
5
151 Views
Last Modified: 2013-11-25
My user wants to have the replace say "No Data" on it when there are no records to report, not just get a message that no data is available, they need an actual report that indicates so.  So, how do I change the underlying query for the report when there is no data to report on?
0
Comment
Question by:ssmith94015
  • 2
  • 2
5 Comments
 
LVL 75
ID: 22617151
You want a 'No Data' message to appear on the report ?

mx
0
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 22617287
create a label with caption "NO DATA", set visible property to NO

in the report Nodata event show the label

private sub Report_NoData(Cancel As Integer)

Me.lblNoData.Visible = True
End Sub

0
 

Author Comment

by:ssmith94015
ID: 22617789
Yes, I need a message on the report that indicates there is no data for the report.  I am going to try Cap's suggestion.  Be right back.
0
 

Author Comment

by:ssmith94015
ID: 22617831
Cap. works perfectly.  
0
 
LVL 75
ID: 22618895
Cap post the exact code I would have posted lol.

mx
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now