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

Is Null Formula

Status
Not open for further replies.

lbunch

Programmer
Sep 5, 2006
120
US
How can I check each formula for null else Excpchk will be "Yes"



Whileprintingrecords;
stringvar Excpchk;

if{@SubBorrwrDateFetch}
{@subMasterDateFetch}
{@SubUnitDateFetch} then
Excpchk := "Yes"
else
Excpchk := Excpchk
 
Formulas generally don't return a null, and since you didn't post what's in the formulas, you shouldn't expect meaningful help here.

to check for null, use:

if
isnull({@SubBorrwrDateFetch})
and
isnull({@subMasterDateFetch})
and
isnull({@SubUnitDateFetch}) then
Excpchk
else
Excpchk := "Yes"

btw, using a formula to state

Excpchk := Excpchk

is redundant, there's nor reason to set something to equal what it already equals.

I suggest that you try posting technical requirements and th environment rather than a fragment of the requirements, you would likely benefit from some architectural advice as well.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top