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!

I need some help with blank values....

Status
Not open for further replies.

dandman71

MIS
Aug 14, 2002
14
US
I need a expression that will pull data for employees skills. I have a database that holds the info, and i can pull it correctly. People with no skills also appear, but with no text for teh skills field. I would like it to read, 'no skills'.

How would I include that, a IIF statement? I woould think it is IIF({database_field)}={database field},{database field},"no skills")

It accepts the expression, but does not return the no skills the they have none/


Any suggestions?
 
try this

If not isnull({Table.skills}) or
length(trim({Table.skills})) > 0 then
{Table.skills}
else
"No Skills";

Jim Broadbent
 
You need to test the field for null. If you try use a field in a formula that contains a null, the formula will stop evaluating.

Try this: iif(not(isnull({database_field})),{database field},"no skills")

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top