![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Honestly I can't believe I'm asking this question, since I've worked on Access for years, but I've been away from it for a bit and for some reason I'm feeling rusty. I need to create a date field that automatically updates with the current date and time each time a record is modified/updated. Do any of you know how to do that? Thanks |
#3
| |||
| |||
|
|
"sjboyd81" <stacey.boyd (AT) hillandknowlton (DOT) com> wrote in message news:bdaeaa.0309151337.6265fd86 (AT) posting (DOT) google.com... Honestly I can't believe I'm asking this question, since I've worked on Access for years, but I've been away from it for a bit and for some reason I'm feeling rusty. I need to create a date field that automatically updates with the current date and time each time a record is modified/updated. Do any of you know how to do that? Thanks Create a form bound to your recordset. On the AfterUpdate event create a macro/code that will update the date/time field to the current date/time. eg. Private Sub frmMyForm_AfterUpdate() Me![RecordTimeStamp] = Now() End Sub Hope that helps. |
#4
| |||
| |||
|
|
"Bradley" <bradley (AT) REMOVETHIScomcen (DOT) com.au> wrote "sjboyd81" <stacey.boyd (AT) hillandknowlton (DOT) com> wrote in message news:bdaeaa.0309151337.6265fd86 (AT) posting (DOT) google.com... Honestly I can't believe I'm asking this question, since I've worked on Access for years, but I've been away from it for a bit and for some reason I'm feeling rusty. I need to create a date field that automatically updates with the current date and time each time a record is modified/updated. Do any of you know how to do that? Thanks Create a form bound to your recordset. On the AfterUpdate event create a macro/code that will update the date/time field to the current date/time. eg. Private Sub frmMyForm_AfterUpdate() Me![RecordTimeStamp] = Now() End Sub Hope that helps. Hello, Just a quick question. Wouldn't you put that code: Me![NameOfFieldHere].value = Now() in the before update property of the form? Just a question. Ray |

![]() |
| Thread Tools | |
| Display Modes | |
| |