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!

Filter Recordsets for Null Values

Status
Not open for further replies.

flash1

MIS
Feb 19, 2002
11
CA
How do I filter for Null values on a recordset?

The following does not work:

lsRecordsetFilter = "FieldName = Is NULL "
rst.Filter = lsRecordsetFilter

Set rst = rst.OpenRecordset(rst)

Thanks,
Flash1
 
Solved it.

lsRecordsetFilter = "FieldName = NULL"
rst.Filter = lsRecordsetFilter

Set rst = rst.OpenRecordset(rst)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top