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

Edward S Zuris edzedz at comcast.net
Mon Jun 2 22:38:25 CDT 2008


 In Access 2000 while in module-VBA-design-mode
 do a CTRL-G and the immediate window opens up.

 That is were the results will go.  Also in
 the  immediate window you could issue the
 command ->  debug.print "Hello World"
 Or -> ? "Hello World 2"

 The ? is a short cut for debug.print

 There are a lot of uses for this.  Play with it. 

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


I haven't used Debug.Print before ... Where exactly do I put this code?

Bob 

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

Dan,
They are definitely different on  my computer.

Here is the  output which corresponds to what is shown in the database
window.


frmEvent      10/05/2008 08:10:29         13/05/2008 17:32:13 


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 2:51 PM
To: 'Access Developers discussion and problem solving'
Subject: Re: [AccessD] How do I retrieve a form's LastModified date?

This is what I did try.  The .DateCreated and .DateModified both give the
Created Date.

There is also another VBA method using Containers, but the result is the
same.

Dan

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

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

--
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

--
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