Re: Crystal XI- IF statment, New user

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Cristina Andreozzi <cca3340@xxxxxxxxxxxxxxxx> rambled:

I've scoured the internet but have had no luck so here I am showing my
ignorance.

I have a field that returns numbers. I want to have the same field
return a word, based on the number:
If "1" returns then I want the field to show "hello"
If "2" returns then "goodbye"
Etc.

I've seen plenty of statements talking about "less then" and "greater
than," but nothing like what I want. I'm guessing because what I want
to do is so simple.

Any help would be appreciated!

Create a formula:

//NumberToText Formula
if {table.field} = 1 then "hello" else
if {table.field} = 2 then "goodbye"

Of course, if the field is "3", then it's going to go haywire. If there are
only two possible outcomes (1 or 2), then the above formula shoudl work
fine.


--
KB

MCNGP #26
www.mcngp.com = t3h h0tn3ss


.



Relevant Pages

  • Crystal XI- IF statment, New user
    ... I've scoured the internet but have had no luck so here I am showing my ... ignorance. ...
    (microsoft.public.vb.crystal)
  • Re: Bitterns
    ... You're showing your ignorance, Malcolm. ... North Africa and central Asia. ... roughly 40 N to 60 N. Hardly warmer climes. ...
    (uk.environment.conservation)
  • Internet radio problem - any ideas?
    ... I have a Tangent Quattro Internet radio. ... the station name showing. ... Poor connection to the wireless router. ...
    (alt.radio.digital)
  • Re: Bitterns
    ... You're showing your ignorance, Malcolm. ... roughly 40 N to 60 N. Hardly warmer climes. ... largest fall in bird populations since I believe records began. ...
    (uk.environment.conservation)
  • RE: Form Datasheet View - Double Entry
    ... Good Luck ... "solar" wrote: ... all the related data whatever related to combo_1 need ... create new data from existing form, the new data is not showing. ...
    (microsoft.public.access.forms)