S
Stewart
I'm trying to test a 4 field, 1 row table, on form_open, to determine if
any one of the fields are empty or not.
But using this example, my If (Null or "")test is ignored:
Dim db As Database, RS As Recordset
Set db = DBEngine.Workspaces(0).Databases(0)
Set RS = db.OpenRecordset("SELECT * FROM tblSerial")
If RS.BOF And RS.EOF Then
'Do Error indication here
End If
Me!Testbox = RS![BaudRate] 'This does display value or blank
If RS![BaudRate]= Null Then 'Never happens regardless of value
MsgBox "Baud Rate empty",,"Missing data"
End If
Is there a quick way to test to see if any field is empty? Or just If
test each, one by one?
Any suggestions appreciated
any one of the fields are empty or not.
But using this example, my If (Null or "")test is ignored:
Dim db As Database, RS As Recordset
Set db = DBEngine.Workspaces(0).Databases(0)
Set RS = db.OpenRecordset("SELECT * FROM tblSerial")
If RS.BOF And RS.EOF Then
'Do Error indication here
End If
Me!Testbox = RS![BaudRate] 'This does display value or blank
If RS![BaudRate]= Null Then 'Never happens regardless of value
MsgBox "Baud Rate empty",,"Missing data"
End If
Is there a quick way to test to see if any field is empty? Or just If
test each, one by one?
Any suggestions appreciated