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

Null Values with an Excel data source

Status
Not open for further replies.

O2BNSV

Technical User
Jun 29, 2006
104
0
0
US
using v11, I am running into issues with blank column values when using an excel sheet as a data source. Neither isnull(field) nor field = "" allows me to account for black cells. Is there a different command I am missing.

Here is an example:

if {answers.coartist?} = "Yes" and {contacts.partnerlastname} = "" or
isnull(contacts.partnerslastname} then {answers.firstname} + " " + {answers.lastname};

When the report is run, if there is no value in the cell for the corresponding {contacts.partnerlastname}, no value is returned. Please advise.

 
try:

if (isnull((contacts.partnerslastname}) or
{contacts.partnerlastname} = "") and
{answers.coartist?} = "Yes" then
{answers.firstname} + " " + {answers.lastname};

The null test needs to come first.

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top