I am looking for a code that keeeps track of all the records in my table
and in case one record is not filled in, to forbid closing.My other problem is that
some fields have a field 0, but even then the value is Null.
I imagine my code in the following way
Dim ctl As Control
For each ctl in frmNewProducts
if ctl is Null then
Exit Sub
MsgBox ( Please fill in the missing values”)
Next
Else
DoCmd.RunCommand acCmdSaveRecord
End If
I do not get anything and obvioulsy what i have written is wrong.
May i ask for helo ?