Solved

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

Posted on 2008-10-01
5
155 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 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

830 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