
03-06-2001, 01:07 PM
|
|
Verbose Coder
Retired Moderator * Guru *
|
|
Join Date: Dec 1999
Location: Phoenix, Arizona
Posts: 3,011
|
|
Re: date created no prob, date updated big headache
|
VBA stands for VB for Applications. Access is one of those applications.
One thing you could do is set your 'date updated' field to Date() whenever a record is modified. If you had your data bound to a form you could put some code in the 'BeforeUpdate' event of the form to do this. You'd need the 'date updated' field to be bound to a textbox on your form but you could make it invisible (set Visible to False) because your user doesn't need to see this field. Your form's BeforeUpdate event would end up looking something like:
<pre>Private Sub Form_BeforeUpdate(Cancel As Integer)
[DateUpdated] = Date ' Change to whatever you're calling your 'date updated' field/textbox.
End Sub</pre>
I can post a tiny sample database if this isn't clear enough.
Hope this helps,
Paul
|
|