Computing.Net > Forums > Programming > vb.net NULL

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

vb.net NULL

Reply to Message Icon

Name: indika_cha
Date: February 4, 2008 at 20:38:07 Pacific
OS: windows xp
CPU/Ram: 3.2 DualCore / 2GB
Comment:

in vb.net, i need to filter the records for value of claim_no="NULL". i use the following:
[OleDbDAChkIntimation.SelectCommand.Parameters("b_claim_no").Value = null ]
but not working. suggest to use "dbnull"

Please help on this.

note pad



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: February 4, 2008 at 22:25:42 Pacific
Reply:

This isn't a VB.NET issue, it's a database SQL issue.

You cannot say WHERE someVal = NULL, as NULL is not a "real" value; it's both every value and no value. Instead, you should use WHERE someVal IS NULL.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: vb.net NULL

Vb.net www.computing.net/answers/programming/vbnet/4055.html

Service VB.NET www.computing.net/answers/programming/service-vbnet/11344.html

Question Regarding VB.net and C# www.computing.net/answers/programming/question-regarding-vbnet-and-c/3580.html