Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying texte in a number field 1

Status
Not open for further replies.

keysol

Programmer
Feb 27, 2001
81
CA
Hi,
I would like to display from time to time text in what is normally a number
calculation field.
Using the if statement, I would like to test a certain condition
(mathematical) and if it is false display text such as "N/A" instead of the
usual numerical result.
I've tried without success. I do notice that the test seems to work and when
I depress my mouse pointer on the field in question the text appears (N/A).

How do I make it so that the "N/A" appears on screen and when printed
(without using the mouse of course) ?

Gerr
keysol@videotron.ca


 
Keysol,
The following should solve your problem.
1. I defined a Calculation text field "TestNum Display."
IF(TestNum > 0, NumToText(TestNum), "N/A")
2. Make sure the "Do not evaluate if all referenced
fields are empty" is unchecked. Also the results must
be text.
3. Place field TestNum Display on your layout.

Of course you can use whatever names you like for the fields.
Good luck,
Jware
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top