I have a huge application made in VBA. All the data is stored on a shared network hard drive. When users use the application, the data is read from the network HDD, updated, then printed.
Like this:
Open FilePath For Input As #1
Line Input #1, Data
Close #1
'Do stuff, Update Data...
Open FilePath For Output As #1
Print #1, Data
Close #1
This happens all the time. The application is used 9 to 5.
I've had occurrences where only half of the file gets printed, the data is just cut off. I reckon what has happened is that the connection to the network HDD were lost precisely when the data was printed. I have a backup system that backups the data every 15 minutes, so we lose at most 15 minutes of work. But it requires me to manually copy and paste from the backup. If I'm not there it will be difficult. People there are not tech savvy.
Is there a way to solve this so that if the connection is lost on a certain computer, the data is somehow not gone?