S
Sondra
I have to apologize for asking some real "simple answered" questions but I
need more advise on this:
I have a form with a new record button (user clicks on the button and an
empty version (new record) of the form opens.) I want to double check that
all fields have been completed prior to leaving current form.
My new record button On Click event reads:
*****************
Private Sub NewCSCR_Click()
On Error GoTo Err_NewCSCR_Click
DoCmd.GoToRecord , , acNewRec
Exit_NewCSCR_Click:
Exit Sub
Err_NewCSCR_Click:
MsgBox Err.Description
Resume Exit_NewCSCR_Click
End Sub
*************
From reading a web reference, I know I have to enter this somewhere, but
not sure where:
*********************
If (Me.Dirty) Then
Me.Dirty = False
End If
*************
Please advise.
need more advise on this:
I have a form with a new record button (user clicks on the button and an
empty version (new record) of the form opens.) I want to double check that
all fields have been completed prior to leaving current form.
My new record button On Click event reads:
*****************
Private Sub NewCSCR_Click()
On Error GoTo Err_NewCSCR_Click
DoCmd.GoToRecord , , acNewRec
Exit_NewCSCR_Click:
Exit Sub
Err_NewCSCR_Click:
MsgBox Err.Description
Resume Exit_NewCSCR_Click
End Sub
*************
From reading a web reference, I know I have to enter this somewhere, but
not sure where:
*********************
If (Me.Dirty) Then
Me.Dirty = False
End If
*************
Please advise.