New record vs. old record

  • Thread starter Thread starter GD
  • Start date Start date
G

GD

How do I get an auto date for new records on a form, but have previous
records refer back to the table for their date? I tried:

Private Sub cboEnteredBy_AfterUpdate()
If Me.NewRecord And Me.cboEnteredBy <> "" Then
Me.txtEntryDate = Now()
Else
Me.txtEntryDate = ""
End If

End Sub

in this event + the Form_Current, but it erased the dates of the previous
record's txtEntryDates. Can anyone help?

Thanks!!!
 
Private Sub cboEnteredBy_AfterUpdate()
If Me.NewRecord Then
If Me.cboEnteredBy <> "" Then
Me.txtEntryDate = Now()
Else
Me.txtEntryDate = Null
End If
End If
End Sub
 
Back
Top