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!

Null Where Condition 1

Status
Not open for further replies.

jimb0ne

Programmer
Joined
Oct 6, 2003
Messages
291
Location
CA
I'm having a problem, I have a table which has several fields. Some of these fields have less items listed in them then other fields. What I am trying to do is search within a field in the table for a Null value, but I don't know what the syntax for null is in SQL. Example:

rs.FindFirst "FieldName = NULL"

but the above does not work. the NoMatch value of the recordset is still true even if the field does contain null values.

Thanks,
Jimb0ne
 
Have you tried

Code:
rs.FindFirst "FieldName = """
 
you can't really do a blank string with using chr(34) and I tried putting 2 of those together but it still returns nomatch as true.
 
Hi!

Not sure, but could you try:

[tt]rs.FindFirst "FieldName is null"[/tt]

Roy-Vidar
 
wtg Roy, good thinkin' y0.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top