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 not null

Status
Not open for further replies.

darahw

Technical User
Feb 27, 2003
74
US
Please help:

I am trying to write an is not null statement.

I am creating a report for invoices and in the page header I want it to change the company if it is a particular division.
This is what I thought it was

If {divisions.name} not null
then
{divisions.name}
else
company XYZ

Does this make sense?
 
First, be sure that it is a null field and not one with a space (that one got me a couple of times). I made the following formula and then told the selection expert that the formula needed to be = CoName...


stringvar message;
if isnull({company.name}) or {company.name}=""
then message:="NoCoName"
else message :="CoName"
 
Hi,
The syntax for NOT NULL in Crystal is a little counter-intuitive..
Code:
If  (
NOT ( IsNull({fieldname}) )
and {fieldname} <> &quot;&quot;
     )
then
.......

else
......

[profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top