ihave table "customer" the table contain many field ineed to check just one of them by example field "phone no" , if contain null value show msgbox "there are null value" and if not contain null value show msgbox" ok " check field "phone no " from table " customer" if any row of field "phone no" contain a null value or not, The data is in the table ,
Set db = CurrentDb
Dim x As String
Dim rs As dao.Recordset
Set rs = db.OpenRecordset("SELECT [phone no] FROM customer;")
Set x = rs
If x = Null Then
MsgBox "There is space"
Else
MsgBox "There is no space"
End If
end sub```
SELECT count(*) from tablename where [filedname] is null;then checkrs.Fields(0).Value- Tim WilliamsMsgBox "Found " & rs.Fields(0).Value & " null values in field '" & filedname & "'"- Tim Williams