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!

finding rows with a NULL value?

Status
Not open for further replies.

tutuster

Programmer
Feb 2, 2005
41
0
0
FI
I need to find the rows from a table, where a certain data has no value, aka null. I've tried to use the isNull({TABLE.DATA}) in my formula but i get dll-error etc.

So, could someone give a pointer on how to create a formula for example:
- TABLE.DATA = 100
- TABLE.DATA2 = NULL

Version 8.5
 
Try something like
Code:
{TABLE.DATA} = 100 
AND IsNull({ TABLE.DATA2})
This would return true or false and could be used in record selection.

Note that if a field can be null, you must put the Isnull test first. Otherwise the formula will stop and return nothing when it hits a null value.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top