Re: displaying message on the report when no data is present
From: talktobatchu (talktobatchu_at_discussions.microsoft.com)
Date: 02/02/05
- Next message: denilynn: "Sorting and Grouping"
- Previous message: Vandy: "Print Group Footer in Set Location"
- In reply to: Marshall Barton: "Re: displaying message on the report when no data is present"
- Next in thread: Marshall Barton: "Re: displaying message on the report when no data is present"
- Reply: Marshall Barton: "Re: displaying message on the report when no data is present"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 2 Feb 2005 13:11:07 -0800
thanks Marshall for the suggestion, but when I write the piece of code into
the Format section of the textbox of TotalCases, the whole code is being
printed on the report instead of hiding it.
guess there should be some other way to do this.
talktobatchu
"Marshall Barton" wrote:
> 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: denilynn: "Sorting and Grouping"
- Previous message: Vandy: "Print Group Footer in Set Location"
- In reply to: Marshall Barton: "Re: displaying message on the report when no data is present"
- Next in thread: Marshall Barton: "Re: displaying message on the report when no data is present"
- Reply: Marshall Barton: "Re: displaying message on the report when no data is present"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|