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!

Invalid use of null 1

Status
Not open for further replies.

pmaxon

Programmer
Sep 25, 2003
68
US
I am using VB6, CR8.5 with OCX and an access 2000 mdb database. To create one of my reports, I need to do a selection on a date field. As it turns out, there may not always be a date in the database. My sql is a follows:
sSQL = "SELECT Date_Closed " _
& "FROM Claim " _
& "ORDER BY Date_Closed "
and it errors off with "Invalid Use Of Null". Is there a way to make a selection which will not be errored off when it reaches a null value? I have tried "WHERE Date_Closed <> ''" and also tried > '', etc but they all error off.

Help Please?

TIA
 
Have you tried 'where not isnull(Date_closed)'?
 
That worked splendidly Katy44. Thanks and a tip of the hat to you!

Pat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top