Re: displaying message on the report when no data is present
From: Marshall Barton (marshbarton_at_wowway.com)
Date: 02/01/05
- Next message: Frank Martin: "Re: Curious error message on opening a report."
- Previous message: Marshall Barton: "Re: Report grouping and printing."
- In reply to: talktobatchu: "displaying message on the report when no data is present"
- Next in thread: talktobatchu: "Re: displaying message on the report when no data is present"
- Reply: talktobatchu: "Re: displaying message on the report when no data is present"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 01 Feb 2005 17:41:57 -0600
talktobatchu wrote:
>First of all thanks to AlCamp for providing me a solution to an earlier
>problem.
>
>I have generated a report basing on a query which gives me the
>number of cases as the result. Here I'm trying to display the same on the
>report, but what I want to do is, if the number of cases are less than 5, I
>want to display as "not sufficient data" on the report.
>I got it with the help of a unbound text control alongside the textbox with
>the following code:
>= IIF(TotalCases < 5, "Insufficient Data",""
>
>The problem is along with the text, the data is also getting displayed and
>what can be done to stop displaying the data when text is displayed
>satisfying the condition.
Add a line of code to the Format event of the section
containing the total cases text box:
Me.TotalCases.Visible = (Me.TotalCases >= 5)
-- Marsh MVP [MS Access]
- Next message: Frank Martin: "Re: Curious error message on opening a report."
- Previous message: Marshall Barton: "Re: Report grouping and printing."
- In reply to: talktobatchu: "displaying message on the report when no data is present"
- Next in thread: talktobatchu: "Re: displaying message on the report when no data is present"
- Reply: talktobatchu: "Re: displaying message on the report when no data is present"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|