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

Testing to see if a field in an Access table is empty or null 1

Status
Not open for further replies.

Paladyr

Programmer
Apr 22, 2001
508
0
0
US
The following code does not work when the field has nothing in it:

Code:
Do Until rstDAO.Fields(2).Value = vbNull

Do Until rstDAO.Fields(2).Value = ""

Do Until Len(rstDAO.Fields(2).Value) < 1

Do Until rstDAO.Fields(2).Value = &quot;Null&quot;
[Code]

How do I properly test to see if the value is Null???  As I step through the code the value comes up as Null but it doesn't pop out of the Do Until statement!  Thanks in advance.
 
have you tried using the isnull() function


Do Until isnull(rstDAO.Fields(2))

 
That did it, thanks a bunch!!! These forums are rockin today!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top