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!

Suppress on null date 1

Status
Not open for further replies.

RobHVB6Sql

Programmer
May 20, 2002
77
AU
I need to suppress a section when a date field is null.
These do not work:

Isnull({q1stContact-Numbers.DateOfFirstContact})
or
{q1stContact-Numbers.DateOfFirstContact} = Date(0,0,0)

Any suggestions? Rob Hasard
Data Manager -Genetic Services
(VB6 /SQL 7.0)
 
This depends on your database, it may not have nor allow for nulls.

If the date is truly a null, Crystals' isnull() works against it (assuming a SQL Server database).

Try using an insanity check against the date, such as:

{q1stContact-Numbers.DateOfFirstContact} < currentdate-30000

Often times the date will have a default.

Use Query Analyzer to inspect the data.

-k kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top