S
Susan Luty
Please Help! I'm trying to automatically close a form if a field value on
that form is null (meaning there are no records in the underlying table)
I tried this code but neither is working - what am I doing wrong?
(the properties of the field in question has a name of Old Check)
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.Old_Check Is Null Then DoCmd.Close
End Sub
Private Sub Old_Check_BeforeUpdate(Cancel As Integer)
If Me.Old_Check Is Null Then DoCmd.Close
End Sub
Thanks so much for any help
that form is null (meaning there are no records in the underlying table)
I tried this code but neither is working - what am I doing wrong?
(the properties of the field in question has a name of Old Check)
Private Sub Form_BeforeUpdate(Cancel As Integer)
If Me.Old_Check Is Null Then DoCmd.Close
End Sub
Private Sub Old_Check_BeforeUpdate(Cancel As Integer)
If Me.Old_Check Is Null Then DoCmd.Close
End Sub
Thanks so much for any help