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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If Then question 1

Status
Not open for further replies.

RJMullins

Technical User
Sep 14, 2004
2
US
I am trying to create a report that gets the data from a Pervasive SQL database, I want to replace the empty value of one field with data I enter into the formula dependant upon the value of another field.

Example I have is:

if {Part_Master.ACTTYP_01} = "B" then {Part_Master.UDFKEY_01} = "0146BI";

But the result I am getting is True or False.

I have taken programming courses for my degrees however I have been a Network Engineer for too many years to remember any real programming language so any help is greatly appreciated!

Thanks

- Bob
 
Try:

if {Part_Master.ACTTYP_01} = "B" then
"0146BI"

Thsi doesn't check for empty data though, that would look something like:

if isnull({Part_Master.ACTTYP_01})
or
{Part_Master.ACTTYP_01} = "" then
"Some value"
else
{Part_Master.ACTTYP_01}

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top