Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having The Save Button in the form pull the current date

Status
Not open for further replies.

bd02eagle

Programmer
Jul 7, 2006
15
US
I have a form in access which Im using to enter data into a table. Well, when I click the save record button, Access saves the date in my Entry_Date field to the default date which is 4/20/1992 instead of the current date. What should I do?
 
You may try something like this in the BeforeUpdate event procedure of the bound form:
If Me.NewRecord Then Me!Entry_Date = Date

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top