Help on Adding or editing new records

  • Thread starter Thread starter Morgan
  • Start date Start date
M

Morgan

What I want to do is close a form depending of if they
change data or if it is a new record.

And close a form depending if it is a new record or a
existing record.

On first button ADD/EDIT

If "New record" (witch I don't know the command) Then
Rund Code that I have
Else
DoCmd.Close 'just close the form if they edited it.
 
Hello Morgan
What you want is Me.NewRecord

You can also tell whether an edit has taken place using
Me.Dirty
HTH
Terry
 
Back
Top