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

SetFilter criteria with NULL 1

Status
Not open for further replies.

abhijit74

Programmer
Joined
Oct 1, 2003
Messages
16
Location
US
Hi Folks,
I want to use SetFilter function of the datawindow to specify a condition. The condition is that column value should be equal to a null.

Please help me.

Regards,
Abhijit
 
Hey PowerObject,
I tried doing exactly the same thing
I did this dw.SetFilter(&quot;Col1 IS NULL and Col2 <> 'N')

However I observed that it gave me a datawindow &quot;invalid function error&quot;

I am using 6.5

Cheers!
Abhijit
 
Abhijit,

This should work:

dw.SetFilter( &quot;IsNull( col1 ) and col2 <> 'N'&quot; )
dw.Filter()

Just let us know if it did...

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top