Last 2 weeks of records missing from database

eellenoff

Registered User.
Local time
Today, 14:06
Joined
Jul 17, 2007
Messages
17
Hello, I've got what looks like quite the issue with my database, and I'm mystified as to what could be going on. I've got a database used daily by 4 users. It's split into a frontend (10MB) with all the forms/queries/reports/vba and a backend that's just tables (170MB), and the users access the database from a network drive. All additions through the forms are logged to a text file, and at the end of the day, a report is run that prints the day's work to a PDF. The database / workflow has been stable for the last few years, with only minor edits to the code, and no programmatic changes in the last 3 months.

Today, after running a compact-and-repair, I realized that the database contained no entries added within the last 2 weeks. I checked my log files, and sure enough I see that all of my records were at some point added to the database. This is supported by the fact that I have PDFs for every day in the last 2 weeks that show exactly what was done (roughly 30 new records/day).

My first guess was that compact and repair had corrupted the database, and knocked out a chunk of records. Fortunately, I've got daily backups, so I started restoring to yesterday's database. At this point I found that the records were missing from there, and from every backup from the last 2 weeks. Now, it's possible that my backup solution (logMeIn backup) is hosed, but the the log files are getting properly restored by the backup, which leads me to believe the backup is working. So, somehow these records were never saved in the database, yet they magically appeared in my end-of-day reports?

Something about this situation feels very off, but I'm not even sure where to begin. I thought maybe I was getting stuck in some state where the database went read-only and the edits were getting stored in memory but never written to disk, but that doesn't make sense as we occasionally restart the database during the day for other reasons, and the end-of-day reports are always complete, which knocks that out. Having restored to a prior version of the DB, I attempted to make changes / add new records and they appear to be sticking, but I find my faith in Access rather shaken, all the more so because I haven't a clue what went wrong before.

Has anyone seen something like this before, or have suggestions as to how to go about debugging it?

Thanks
-Eric
 
"Missing data"-predicaments with a system that otherwise appears to operate perfectly often arise from confusion between backend files and between development and production versions. If the system appears to have done what is was supposed to and that would be impossible without the data, but the data is missing in the file in which you looked then look for another file holding the data.

I have never heard of Access being selective about which data it gobbles up or discards, so I would look in the error-40 area :D
 
Spike has a good point. Double check the actual backend used by your dbs.

Currentdb.tabledefs(sometable).connect

It's might not be the database that was being backed up. Maybe it's just wrong for some users.

Edit. I see you are all using the same network copy of the front-end. Sharing a database instance is not recommended
 

Users who are viewing this thread

Back
Top Bottom