Link to home
Start Free TrialLog in
Avatar of Peborgh
PeborghFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Shredding files from Access VBA

Is there a facility in Access (or available from Access VBA) for shredding/erasing/obliterating/annihilating a file?
I have to do this because my app works on highly sensitive data and deletion is not enough...

Many thanks.
Avatar of patricka_0377
patricka_0377

Sounds like you are using the wrong tool for the job.....

 If it is that sensitive e.g. ITAR, NATO Classified ....  Access is definately the wrong tool for the job.....  I would look at your architecture and think again.....e,g. Encryption... not even storing the data on the computer...

The only real option to you in access is Kill .... but thats just a file permanent delete as you would on windows.....From the sounds of what you are saying you would need to erase the tracks on the hard drive it was stored on... which is just not sensible from Access
Avatar of Peborgh

ASKER

Hey, I was perhaps exaggerating a smidgen. I am not up against the KGB od MI5 or the CIA but this is counselling info and therefore I like to reassure my Users that undeleting the file will not be an option...
Can you tell me more about "kill"?

many thanks,

peter vp
If you don't need that level of security you could first update all the fields of your tables with random values then Kill "MyDatabase.mdb"
So in case of undelete he got only wrong values.
You could encrypt the database, but if you want security you're using the wrong backend database in the first place.

http://www.governmentsecurity.org/articles/IsDatabaseSecurityanOxymoron.php

Jim
ASKER CERTIFIED SOLUTION
Avatar of jmoss111
jmoss111
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
this is all I can dig up on Kill...

http://msdn.microsoft.com/en-us/library/ey1w10ch.aspx

but yeah it does not go to your recycle bin.....

but that SDelete sounds pretty good from jmoss111

if you are new to this stuff then to run this from access vba code I would suggest looking at the following

http://support.microsoft.com/kb/129796

HTH

What exactly do you want to shred?

Jim
Avatar of Peborgh

ASKER

Word files and Access data-only databases.

Thanks,

peter
Avatar of Peborgh

ASKER

all,

Supplementary: I have now discovered that sdelete may not be "lent" so I could not distribute it to my users. Shame!
Also, it gets very sensitive: I accidentally declined the EULA and now it won't start at all! And unzipping it again does not reverse this. The producers of sdelete are a wholly-owned subsidiary of Microsoft - why am I not surprised?

peter
peter,

I believe that you misconstrued the term "lent" in the EULA. If the file is freely downloadable, its for everyone. You can't misrepresent the program by stating that you are the developer or owner and are selling, renting, or lending the software to an individual or business entity. The only item in the EULA that may apply to you is exportation, but that probably means rogue powers; at least that was the definition the last time I checked www.microsoft.com/exporting

I told you that Sysinternals was part of Microsoft in the post where I mentioned it.  If it were not for Microsoft products, I'd be looking for another line of work.

Cheers,

Jim


Avatar of Peborgh

ASKER

That clarifies things, jmoss111. Hey, i would be out of work too without MS! But they do tend to be a little tight at times...

peter
I tend to agree, but I think that they have gotten better in the past few years. There was a time when they gave zip away; the open source movement has forced a change for the better. For instance, SQL Server Express is a very good freebie. They do leave out some tools from the regular versions but nothing that can't be overcome or downloaded by using an open source version, except for SSIS.

Also, if you go to launch events, you'll get gratis copies of OS, dev, office and productivity software and I'm not talking about trial versions like they use to do.

Jim
Avatar of Peborgh

ASKER

I'll look further into the sysinternals shredder but reality has got in the way in work life at present... I will close for the moment.

peter
Avatar of Peborgh

ASKER

CAnnot tell at present how useful the answer will be but I don't want to drag this out...

peter
I would rather have gotten no points than a B which is a slap in the face.  
What would have been required for an A; I want an answer from you, you got several answers from me?
Avatar of Peborgh

ASKER

I was in a bit of a hurry this morning. Looking at it again, make that an A because you did contribute quite a lot to the discussion. However, I can't tell whether the sysinternals will be a "complete" answer because I cannot try it for some time due to circumstances beyond my control.
Someone at EE will have to tell me how to bump you up to an A.
Btw, if B is a slap in the face, what would a C be? I do believe that, although you were right that I had under marked you, your reaction was a bit over the top...

peter
My answer complied with your question. My can get a zone advisor to change the grade.

Jim