I have a database saved on a flash drive. I use this copy whenever I make any updates to it, and keep the production one on my hard drive for actual use and copy it over as the updates are completed. I was making updates last night and quit for the night in the middle of something. I left the database open overnight but I "think" I saved and closed any open forms/modules I was working on before quitting (not absolutely sure though). I returned to it this morning to a message on screen stating , I cant remember the exact message but, something like disk full, unable to continue... This message was refering to my flash drive that the database was running on. I then noticed that my database has grown in size over night from around 20MB to 355MB, which is what filled up the little space I had left on the flash drive. I was able to eventually close the database, without quitting the process in the Task Manager. When trying to re-open it I get the following message:
"The VBA modules in this database appear to have been saved with errors. Access can recover the modules, but you should backup the database first. To cancel so you can make a backupcopy of the database, click Cancel. Then make a backup copy of the database.
If you have a backup copy of the database, click OK. When the database opens, examine the modules to see that they are correct. If they are not, you should revert to a recent backup"
I click Cancel and get this message (well, the short hand version):
"Access has detected corruption in the file. To repair, make a backup then run Compact and Repair. If you are currently trying to repair this corruption you need to recreate the file or restore it from a backup"
I canceled out of everything, closed the database, made a backup copy, reopened it and ran Compact and Repair. Upon completion the errors were gone and my database opened fine, however ALL of my VBA code was competely gone!
My I keep making backups of the corrupted version before I try other things, but in short, how can I fix this without loosing my code?
And also, what would make my database grow in size so much overnight? I did add an on timer event every 15 seconds to check the value of a field in a settings table I have and all it did was change the background color of my main navigation form if the field met a sepcific value, but I dont recall having it "store" and data where it would just contunue to grow and grow.
Any suggestions? I do have a older working backup, but have made many updates since then, and would like to at least try to restore this one before re-doing everything since that version.
"The VBA modules in this database appear to have been saved with errors. Access can recover the modules, but you should backup the database first. To cancel so you can make a backupcopy of the database, click Cancel. Then make a backup copy of the database.
If you have a backup copy of the database, click OK. When the database opens, examine the modules to see that they are correct. If they are not, you should revert to a recent backup"
I click Cancel and get this message (well, the short hand version):
"Access has detected corruption in the file. To repair, make a backup then run Compact and Repair. If you are currently trying to repair this corruption you need to recreate the file or restore it from a backup"
I canceled out of everything, closed the database, made a backup copy, reopened it and ran Compact and Repair. Upon completion the errors were gone and my database opened fine, however ALL of my VBA code was competely gone!
My I keep making backups of the corrupted version before I try other things, but in short, how can I fix this without loosing my code?
And also, what would make my database grow in size so much overnight? I did add an on timer event every 15 seconds to check the value of a field in a settings table I have and all it did was change the background color of my main navigation form if the field met a sepcific value, but I dont recall having it "store" and data where it would just contunue to grow and grow.
Any suggestions? I do have a older working backup, but have made many updates since then, and would like to at least try to restore this one before re-doing everything since that version.