G
Guest
hi all
i have this code:
Private Sub DIAG_BeforeUpdate(Cancel As Integer)
If Not Me.NewRecord Then
If MsgBox("Changes have been made to the Diagnosis Category" _
& vbCrLf & "Do you want to save these changes?" _
, vbYesNo, "Changes Made...") = vbNo Then
Cancel = True
Me!DIAG.Undo
End If
End If
End Sub
but what i actually need is , if the field was empty before this update, not
to prompt (filling in the field for the first time).i.e.to prompt only when
the there was some data in this field and has been changed.
any one can help me with this?
i have this code:
Private Sub DIAG_BeforeUpdate(Cancel As Integer)
If Not Me.NewRecord Then
If MsgBox("Changes have been made to the Diagnosis Category" _
& vbCrLf & "Do you want to save these changes?" _
, vbYesNo, "Changes Made...") = vbNo Then
Cancel = True
Me!DIAG.Undo
End If
End If
End Sub
but what i actually need is , if the field was empty before this update, not
to prompt (filling in the field for the first time).i.e.to prompt only when
the there was some data in this field and has been changed.
any one can help me with this?