DoCmd.Save doesn't work

  • Thread starter Thread starter Ron
  • Start date Start date
R

Ron

I have written Access 2000 VBA code to cycle through all
open forms, reports, modules, etc. in a database, check
whether they are dirty (using SysCmd), and if so save
them, using lines like:

DoCmd.Save acForm, Forms(i).Name

I then log form name and modification date/time in a
table. All this is because the "last modified" date in
Access 2000 is inaccessible and I need it for another
process.

The problem is that the .Save operation is generating a
runtime error(#29068) every time that
says "<ApplicationName> cannot complete this operation.
You must stop the code and try again."

Any ideas why this doesn't work?
 
Back
Top