automatic field

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to add "today's date" into a field everytime a new record is created.
I have tried several things, with no success. Anythoughs?
 
Private Sub Form_Current()
If Me.NewRecord Then
YourDateFieldName = Date
End If
End Sub


david said:
I want to add "today's date" into a field everytime a new record is created.
I have tried several things, with no success. Anythoughs?

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
 
david said:
I want to add "today's date" into a field everytime a new record is
created. I have tried several things, with no success. Anythoughs?

Make Date() the default value for that field in the table's design.
 
Back
Top