[AccessD] How do I retrieve a form's LastModified date?

Max Wanadoo max.wanadoo at gmail.com
Mon Jun 2 08:26:32 CDT 2008


You could mess around with the AllForms properties.  Something like this:-

Function frmProperties()
  Dim obj As AccessObject, dbs As Object
  Set dbs = Application.CurrentProject
  For Each obj In dbs.AllForms
    If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then
      Debug.Print obj.Name, obj.DateCreated, obj.DateModified
    End If
  Next obj
End Function

This will extract the modified date and other items.

Max
 

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters
Sent: Monday, June 02, 2008 1:33 PM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] How do I retrieve a form's LastModified date?

Bob - I tried to find this out as well.  I finally found a MS KB article
which said that since A2000, you cannot get the date last modified
programmatically due to the database structure change at that time.  The
only way to find out the date is to just look at the database window.

There is VBA code to get the last modified date, but the date it returns is
the created date, which isn't helpful.

HTH,
Dan

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski
Sent: Monday, June 02, 2008 7:03 AM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] How do I retrieve a form's LastModified date?

Hello Friends

I need to check the last modified date/time on a form. I suspect that this
is only possible through an API call, which is something I know NOTHING
about.

Could someone please help me or point me to a resource that I can learn
from?

Regards,
Bob Gajewski

--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

--
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list