Skip to Content

if statement


I have a basic if statement in my report:


Numbervar Sday4;

if SDay4 < 0 then




I what to replace the 0 (zero) with "**OKAY**" but since this a string value it gives me an error message:

It highlights "**OKAY**" message -> A number is required here.

Any suggestion?

I tried totext("**OKAY**")

Thank you in advance


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 15, 2016 at 03:14 PM

    If SDay4 < 0 then




    Take a look at the help for "ToText" to determine what you need to do to format the number correctly when you convert it - the default includes two decimal places and a comma as the thousands separator.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.