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

Handling Nulls 3

Status
Not open for further replies.

ganjass

Technical User
Dec 30, 2003
154
GB
CR 10

Hi all, i'm looking to have a record slection criteria that selects records where stage to <> Stage from, problem is the stage from can be null, how would i change the crystal syntax to substitue a string for a null, like the nvl() function in SQL.

Thanks in advance
 
You could use:
file
report options
convert database null values
or
If isnull(Field) then 0
else (field)
 
Just create a SQL expression (with the nvl()) and use that in your selection statement.

//%StageFrom

nlv(table.StageFrom,"") // or whatever the currect SQL syntax is

//Selection formula

{table.StageTo} <> {%StageFrom}

Lisa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top