Problems With LastUpdate Property!!

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Mike Magnes (Magnes_at_discussions.microsoft.com)
Date: 03/15/05


Date: Tue, 15 Mar 2005 11:17:04 -0800

I am trying to pull the LastUpdate property of an object (Forms in this case)
in an Access 2003 database, but every time I do I get the DateCreated data.
The function I wrote worked correctly under Access 2000. Also in if I make a
change to form and save it the Modified date on the database window reflects
the proper Date and time, but the Modified date in the MSysObjects table does
not.

Here is the code I used to check the date. This is opening 2 different
database files and compairing the modified property's of both to see if the
Update database objects are newer. If they are it copies them to the
application database and updates the version information.

Set dbUD = DBEngine.Workspaces(0).OpenDatabase(DbLoc) 'Open the Updated
Database
Set dbC = CurrentDb() 'Open the Current Database

 For X = 0 To dbUD.Containers("Forms").Documents.Count - 1
      If dbUD.Containers("Forms").Documents(X).LastUpdated >
dbC.Containers("Forms").Documents(dbUD.Containers("Forms").Documents(X).Name).LastUpdated Then

Why is this happening, and what do I need to do to correct it.



Relevant Pages

  • Last Update Problem
    ... I am trying to pull the LastUpdate property of an object ... in an Access 2003 database, but every time I do I get the DateCreated data. ... Update database objects are newer. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Database Connection Problem. Please Help
    ... I have a process which first pulls one time all application IDs from a database and stores them in a table. ... The problem is that after processing about 100 records, using SqlDataReader, my database connection will starts failing. ... I've been trying to find a way to pull all details for all records at once, instead of one at a time but I have not been able to do that. ...
    (microsoft.public.dotnet.languages.vb)
  • Database Connection Problem. Please Help
    ... database and stores them in a table. ... The problem is that after processing about 100 records, using SqlDataReader, ... my database connection will starts failing. ... I've been trying to find a way to pull ...
    (microsoft.public.dotnet.languages.vb)
  • Re: updating database views via tableadapter?
    ... "Darren Sim" wrote in message ... One final question - if writing my own update etc commands do I need to pull the respective tables key values through in order to do this? ... > Or create a view in the database and use that created view as a> table. ... >> public void saveReview(ref DataSet review) ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Need Input on Database Design
    ... MS Access MVP ... has a small sample database of this at ... information can be accessed utilizing 4 pull down menus. ... a selection of statistical data for the car model, ...
    (microsoft.public.access.tablesdbdesign)