PC Review


Reply
Thread Tools Rate Thread

currentdata.AllTables(0).DateModified

 
 
=?Utf-8?B?QWlyZ2FzUm9i?=
Guest
Posts: n/a
 
      27th Mar 2006
I have four linked tables in my Access 2000 db. I would like to check all
tables and see the last time they changed. I am hoping to try and detect if
the data is new every day. Using the information I would build a table to
display the results, which could then be displayed on a form. Any help would
be appreciated.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2xhdHV1?=
Guest
Posts: n/a
 
      27th Mar 2006
Application.Currentdata.AllTables(0).DateModified


"AirgasRob" wrote:

> I have four linked tables in my Access 2000 db. I would like to check all
> tables and see the last time they changed. I am hoping to try and detect if
> the data is new every day. Using the information I would build a table to
> display the results, which could then be displayed on a form. Any help would
> be appreciated.

 
Reply With Quote
 
=?Utf-8?B?S2xhdHV1?=
Guest
Posts: n/a
 
      27th Mar 2006
Oops! I just realized I did not send the complete answer, sorry, but here it
is:

Sub WhenChanged()
Dim tbls As AllTables
Dim intCnt As Integer

Set tbls = Application.CurrentData.AllTables
For intCnt = 0 To tbls.Count - 1
Debug.Print tbls(intCnt).Name & " - " & tbls(intCnt).DateModified
Next intCnt

End Sub


"Klatuu" wrote:

> Application.Currentdata.AllTables(0).DateModified
>
>
> "AirgasRob" wrote:
>
> > I have four linked tables in my Access 2000 db. I would like to check all
> > tables and see the last time they changed. I am hoping to try and detect if
> > the data is new every day. Using the information I would build a table to
> > display the results, which could then be displayed on a form. Any help would
> > be appreciated.

 
Reply With Quote
 
=?Utf-8?B?QWlyZ2FzUm9i?=
Guest
Posts: n/a
 
      27th Mar 2006
OK the more I dable the more I realize I need to take some classes.
When I run that code I get a runtime error 438.

"Klatuu" wrote:

> Oops! I just realized I did not send the complete answer, sorry, but here it
> is:
>
> Sub WhenChanged()
> Dim tbls As AllTables
> Dim intCnt As Integer
>
> Set tbls = Application.CurrentData.AllTables
> For intCnt = 0 To tbls.Count - 1
> Debug.Print tbls(intCnt).Name & " - " & tbls(intCnt).DateModified
> Next intCnt
>
> End Sub
>
>
> "Klatuu" wrote:
>
> > Application.Currentdata.AllTables(0).DateModified
> >
> >
> > "AirgasRob" wrote:
> >
> > > I have four linked tables in my Access 2000 db. I would like to check all
> > > tables and see the last time they changed. I am hoping to try and detect if
> > > the data is new every day. Using the information I would build a table to
> > > display the results, which could then be displayed on a form. Any help would
> > > be appreciated.

 
Reply With Quote
 
=?Utf-8?B?S2xhdHV1?=
Guest
Posts: n/a
 
      27th Mar 2006
Interesting. I ran it just fine on my system before I sent it.

Acess 2003/XP Pro

"AirgasRob" wrote:

> OK the more I dable the more I realize I need to take some classes.
> When I run that code I get a runtime error 438.
>
> "Klatuu" wrote:
>
> > Oops! I just realized I did not send the complete answer, sorry, but here it
> > is:
> >
> > Sub WhenChanged()
> > Dim tbls As AllTables
> > Dim intCnt As Integer
> >
> > Set tbls = Application.CurrentData.AllTables
> > For intCnt = 0 To tbls.Count - 1
> > Debug.Print tbls(intCnt).Name & " - " & tbls(intCnt).DateModified
> > Next intCnt
> >
> > End Sub
> >
> >
> > "Klatuu" wrote:
> >
> > > Application.Currentdata.AllTables(0).DateModified
> > >
> > >
> > > "AirgasRob" wrote:
> > >
> > > > I have four linked tables in my Access 2000 db. I would like to check all
> > > > tables and see the last time they changed. I am hoping to try and detect if
> > > > the data is new every day. Using the information I would build a table to
> > > > display the results, which could then be displayed on a form. Any help would
> > > > be appreciated.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
view not in CurrentData.AllViews =?Utf-8?B?QWxsZW5fTg==?= Microsoft Access VBA Modules 3 5th Oct 2007 06:24 PM
CurrentData Method =?Utf-8?B?Qm9i?= Microsoft Access 2 17th Dec 2004 03:19 PM
DateCreated and DateModified Tom Microsoft Access Forms 4 19th Sep 2004 03:43 AM
AllTables VS TableDefs Tom P. Microsoft Access VBA Modules 2 27th Aug 2004 06:00 PM
Re: Multiple tables, same sheet, require same color codes on alltables. Jon Peltier Microsoft Excel Charting 2 27th Aug 2003 01:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:52 AM.