Prevent incomplete record saving
I'm trying to prevent my database from saving incomplete records when users don't complete certain fields on the form. I put this code in the before update event but it still saves incomplete records. What am I missing? Thanks for the help!
Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsNull(Me.SectorCombo) And IsNull(Me.StationCombo) And IsNull(Me.BuildingCombo) And IsNull(Me.Description) And IsNull(Me.Requestor) And IsNull(Me.RequestorPhone) Then
Me.Dirty = False
End If
End Sub
I'm trying to prevent my database from saving incomplete records when users don't complete certain fields on the form. I put this code in the before update event but it still saves incomplete records. What am I missing? Thanks for the help!
Private Sub Form_BeforeUpdate(Cancel As Integer)
If IsNull(Me.SectorCombo) And IsNull(Me.StationCombo) And IsNull(Me.BuildingCombo) And IsNull(Me.Description) And IsNull(Me.Requestor) And IsNull(Me.RequestorPhone) Then
Me.Dirty = False
End If
End Sub