dbTalk Databases Forums  

DateCreated

comp.databases.ms-access comp.databases.ms-access


Discuss DateCreated in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Phil
 
Posts: n/a

Default DateCreated - 12-26-2009 , 08:30 PM






I use the following to get date created of say a form

Function GetObjectDates(ObjName As String, ObjType As Long) As Date
' Get DateCreateds of Forms, Reports. Queries etc
'getobjectdates("Member",-32768)

On Error Resume Next
Select Case ObjType
Case -32768 ' Forms
GetObjectDates ectDates =
CurrentDb.Containers!Forms.Documents(ObjName).Prop erties("DateCreated")

Case Else
GetObjectDates = "Unavailable Information"

End Select

End Function

If I type in getobjectdates("Member",-32768) i get the answer 17/09/2009
18:25:07. This is also the information in the MysysObjects table

If I look at the form member I have the Date created as 27/12/2009 01:10: 17
which is when I last compacted &repaired the Db. I am trying to get the date
each onject was last modified into a table, and if I do a Compact & Repair, I
want to restore that date to keep track of what I do.

Why the discrepency and how do I get the Modified Date (Rather than the
created date?

Thanks

Phil


Why the sicrepency

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.