MLH <CR**@NorthStat e.net> wrote in
news:gn******** *************** *********@4ax.c om:
I use A97. I've gotten used to reading values from textbox controls
on forms, I've come to rely on it pretty heavily. My habit spills over
into reports. I'm uncertain whether I can reliably read the values
in textbox controls on reports during the OnFormat event code
the same way I've been doing so in forms.
I have a report I call the 402 report and on it is a LaborCost
textbox. I use a line of code something like this
If txtLaborCost > 0 Then Me!txtLaborCost .Visible = True
in an attempt to read the control's value. I'm not sure I'm getting
what I expect. Who knows about this and feels comfortable
commenting about the topic: Thx.
A common way of hiding zero entries is described in help files:
***
Custom Formats
Custom number formats can have one to four sections with semicolons (;)
as the list separator. Each section contains the format specification for
a different type of number.
Section Description
First The format for positive numbers.
Second The format for negative numbers.
Third The format for zero values.
Fourth The format for Null values.
For example, you could use the following custom Currency format:
$#,##0.00[Green];($#,##0.00)[Red];"Zero";"Nul l"
***
To hide zero we might specifiy
$#,##0.00[Green];($#,##0.00)[Red];"";""
This might be simpler, perhaps even safer then setting the visiblity of
the textbox in code.
--
Lyle Fairfield