dbTalk Databases Forums  

How can I sort my queries by creation date or last modified date inAccess 2007

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


Discuss How can I sort my queries by creation date or last modified date inAccess 2007 in the comp.databases.ms-access forum.



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

Default How can I sort my queries by creation date or last modified date inAccess 2007 - 05-04-2011 , 01:42 PM






My computer was recently upgraded to Access 2007. The one feature I
can't seem to find in this newer version is how to view the creation
date and last modified date for my queries. I want to sort by that
field, but cannot figure out how to do this. Thanks.

Reply With Quote
  #2  
Old   
Salad
 
Posts: n/a

Default Re: How can I sort my queries by creation date or last modified datein Access 2007 - 05-04-2011 , 04:36 PM






Coll wrote:
Quote:
My computer was recently upgraded to Access 2007. The one feature I
can't seem to find in this newer version is how to view the creation
date and last modified date for my queries. I want to sort by that
field, but cannot figure out how to do this. Thanks.
Try this code. See if gets you partway there.
Sub q()
Dim q As QueryDef

For Each q In CurrentDb.QueryDefs
If left(q.Name, 1) <> "~" Then
Debug.Print q.Name & " created " & q.DateCreated & _
" modified " & q.LastUpdated
End If
Next
End Sub

You can write functions by modifying the above to pass the query name
and return the dates if the query names are stored in a table a table.

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.