D
DS
Is there a way to tell if an Access mdb file is corrupted before you save it
as a backup?
Thanks
DS
as a backup?
Thanks
DS
Is there a way to tell if an Access mdb file is corrupted before you save
it as a backup?
So that file size thing seems interesting...is there a way to divide the
file size by 4096 from access or a batch file?
Me.TextBox=filesize/4096
If Me,Textbox=a whole number then
Its Good
Else
Its Bad
End if
Thanks John but how is this used....?
I just want to see if the file I just wrote to is good or not.
This divide by 4096 is seeming to be a tuff nut to crack. I've looked all
over the internet!
I'm basically appending my current info to an external History.mdb and after
I send the info I want to make sure that the History.mdb is not corrupted so
that if I have to use it for whatever reason I'll know that it's good!
Thanks
DS
You said there is no easy way. Is there a hard way?
OK, Thanks John. You said there is no easy way. Is there a hard way?
Do I leave the FileSize in there or do I have to replace it with a number?
If Filesize Mod 4096 <> 0 Then
MsgBox "BAD"
Else
MsgBox "GOOD"
End If
So where can I find out about all of the different file corruptions
and how to read for them
'69 Camaro said:Hi, DS.
[quoted text clipped - 3 lines]Do I leave the FileSize in there or do I have to replace it with a number?MsgBox "GOOD"
End If
I see you've opened another thread and already received a working code
procedure, so we'll leave this question alone.
But I'd like to reiterate that focusing on the file size as the "only way to
determine whether the file is corrupted" is likely to disappoint you. It's
fairly uncommon these days, since most folks have been warned not to open
Jet database files in Word or other applications that automatically save the
file in their own formats. If you're appending records to a table in
another database file from within Access, then you shouldn't be worrying
about a data page arbitrarily becoming smaller than it should be. You're
not using an external software application. You're using Jet, a database
engine that knows how to append records in its native file format.
I would normally have zero worries if I were in your shoes, because you make
backups. However, if you have found corrupted files backed up and are
concerned about future corrupted backups, you need to address what's causing
the corruption, and checking the file size would be one of the last things
on my list. Check for a flaky network (your users aren't using wireless,
are they?!!), opportunistic locks on the network server, users hitting the
workstation's power switch at the end of the day while the Access database
is still open and writing to file, et cetera.
HTH.
Gunny
See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blogs: www.DataDevilDog.BlogSpot.com, www.DatabaseTips.BlogSpot.com
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
info.
I'm using RAID 5, with daily back-ups.
Also I'm trying to figure out how to back-up on a transaction to
transaction
basis. Like a bank does. So if I go down, I don't loose anything.