-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Usually, "time stamps" (I call them audit columns) are placed in the
table that is updated/appended. The table usually has 3 audit columns:
UserID, DateEdited, DateAdded. To update those columns I use the bound
form's Before Update event. E.g. (assumes User Security is operable):
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.UserID = CurrentUser()
Me.DateEdited = Date()
If Me.NewRecord = True Then Me.DateAdded = Date()
End Sub
Be careful using the word TIMESTAMP as a column identifier. In SQL
Server it refers to a data type that is not a time indicator, but a row
version number, used for internal validation.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQe64OoechKqOuFEgEQJzawCfb5WlAxyyCCb+zFczhvD7Nl PfShEAoMnM
THCyRylYMfiaD3HQfEouKBuC
=S5Bi
-----END PGP SIGNATURE-----
vulcaned@isp.com wrote:[color=blue]
> Hi All,
> Hopefully I explain this well........
>
> In Access97 I have a form which has a tab control on it, each tab has a
> sub-form which is bound to its appropriate table(I'll call them
> 'Detail' tables). I have a 'Header' table and fields from it are
> displayed on the form above the tab control.
> Header table name is tblClientInfo
> Detail tables are tblPolicyInfo, tblBeneInfo, tblRiderInfo
>
> In the tblClientInfo I have a TimeStamp field which I want to append to
> when a user updates anything on each of the tabs so, how do I detect
> that something was updated on the Policy Info tab and then append a
> TimeStamp (ex: UserID updated Policy information on 01/19/05 at 2:14pm)
> to the TimeStamp field in the tblClientInfo table. And then if the user
> clicks on the Riders tab and updated something do the same except sub
> "Rider information" for "Policy information".
> I'm not sure how to detect if anything on the subform for the current
> active tab has been updated, what's the vba coding to do this?
> thanks for any and all help
> bobh.
>[/color]