Im trying to create a SQL statement in MS Access that will look for blank fields in a table. Say, for example, a patients last name is missing - this query should pick this up.
How would I go about doing this? I'm able to determine how to do it for the first record but for an entire table is proving difficult
Dim Rst As recordSet
Dim f As Field
'Current Record set
Set Rst = CurrentDb.OpenRecordset("tblWebMeetingData")
'Holds current fields data
Dim fieldData
'With Rst
'Do Until Rst.EOF
For Each f In Rst.Fields
If IsNull(f.Value) Then
MsgBox ("Field Name: " & f.Name)
End If
Next
'Loop
'End With
Rst.Close