MSysObjects.DateUpdate
(1)
CurrentDb.Containers
(1)
Database
(1)
Report
(1)
Thans
(1)
June
(1)
Objectname
(1)
ACC2000
(1)
Last modified Date for an Access file
Asked By Jess
04-Feb-10 10:26 AM
What is the vba command that yields the date when THE CODE for an access file
was modifed for the last time?
Can anybody post an example?
Perhaps someone will say otherwise, but to my knowledge this cannot be done.
Daniel Pineault replied to Jess
04-Feb-10 11:05 AM
Perhaps someone will say otherwise, but to my knowledge this cannot be done.
You can determine the last modified time of the mdb file itself, but when
someone edited the vba code... I do not believe this is possible.
Why? What is the end goal? Perhaps we can guide you in another way.
--
Hope this helps,
Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.
Jess -Modules and forms have modified dates, but not individual pieces of
Daryl S replied to Jess
04-Feb-10 01:51 PM
Jess -
Modules and forms have modified dates, but not individual pieces of code
that I know of.
--
Daryl S
ThanksHow can I know the modified date for a form, a report, and a module?
Jess replied to Daryl S
04-Feb-10 04:01 PM
Thanks
How can I know the modified date for a form, a report, and a module?
Can you post an example?
Thans
i'm not sure the code below will help you since as per this
NuBie via AccessMonster.com replied to Jess
04-Feb-10 04:48 PM
i'm not sure the code below will help you since as per this article
http://support.microsoft.com/kb/299554 it seems this is a known problem. not
sure if its been fixed. the article was written last June 25, 2004.
ACC2000: DAO LastUpdated Property Returns Incorrect Date/Time
Private Sub Command0_Click()
MsgBox CurrentDb.Containers("Forms").Documents("form1").LastUpdated
End Sub
--
Message posted via http://www.accessmonster.com
Jess -Be very careful with the system objects.
Daryl S replied to Jess
05-Feb-10 09:52 AM
Jess -
Be very careful with the system objects. Remember to back up your database
before playing with this...
SELECT MSysObjects.DateUpdate
FROM MSysObjects
WHERE (((MSysObjects.Name)="objectname"));
Put in any object name (table name, report name, etc.)
--
Daryl S