Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Multiuser / Networking / March 2005

Tip: Looking for answers? Try searching our database.

last time a record was edited

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joanthan - 22 Mar 2005 17:50 GMT
Is there a built in property in Access/ Jet that can give me a Date/Time of
the last time a record was edited, added or deleted from a table?

I.e. A Last Modified property on the records of a table, not on an open
recordset and not on the Tabledef itself?

Thank you
Rick B - 22 Mar 2005 18:01 GMT
No.  There is no built-in function.

Do a search for "timestamp" and you will find many many previous posts that
address methods to do this.

You should always search before posting a new thread.  9 times out of 10 you
will find your answer.

Rick B

> Is there a built in property in Access/ Jet that can give me a Date/Time of
> the last time a record was edited, added or deleted from a table?
[quoted text clipped - 3 lines]
>
> Thank you
Joanthan - 22 Mar 2005 18:57 GMT
By the way, what i need is a table level property, not a record level property.

I have Front-end forms that on the on_timer event, need to check a back-end
table to see if another user has changed, added or deleted any records. If
yes, then me.requery!

If you have come across a solution in a past post, please give me a link.

Thank you



> No.  There is no built-in function.
>
[quoted text clipped - 14 lines]
> >
> > Thank you
Douglas J. Steele - 23 Mar 2005 01:03 GMT
If you maintain timestamps on each record, you can do a query to return any
records with a timestamp greater than the last time you ran the query. If
any records come back, you know something's been changed.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> By the way, what i need is a table level property, not a record level
> property.
[quoted text clipped - 29 lines]
>> >
>> > Thank you
Joanthan - 23 Mar 2005 12:11 GMT
Thank you for your input.

What this means is I will have to run a DMax()
on the timestamp field and a DCount() on the
primary key field, to catch Edited records,
New records and Deleted records.

Running the above every few seconds on the
on_timer event is going to be pretty heavy on
the network, especially since we are talking about
large tables.

I suppose the next best solution would be to trap Edits,
Additions and Deletions on the Form and store the
timestamp in either a custom property on the table,
or create another table especially for this purpose,
and store it there.

I imagine the extra table will be fastest solution.

If you know of anything better please let me know.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.