Print Page | Close Window

DataScramble.mdb (intermediate)

Printed From: Roger's Access Library
Category: Roger's Access Library
Forum Name: Roger's Download Samples
Forum Description: A compendium of Microsoft Access 97 and 2000+ routines, each separated into its own sample database.
URL: www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=357
Printed Date: 21 Nov 2019 at 8:19am


Topic: DataScramble.mdb (intermediate)
Posted By: Roger Carlson
Subject: DataScramble.mdb (intermediate)
Date Posted: 01 Aug 2008 at 5:30am

Please consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm - find out why here .

DataScramble.mdb

This form allows you to scramble data in a table for confidentiality reasons. It does this by creating a separate, temporary table with all the values of the field you want to scramble. Then is starts at the top record of the main table and copies random values from the temporary table back into the main table. As each value is copied back in, it is deleted from the temporary table.

Repeat this process for each field and the records will be thoroughly scrambled. Note: You must temporarily remove any unique indexes on a field, before you scramble it. You can re-establish it after the scrambling is done. Do not attempt to do this on Primary Keys, but you may use this on Foreign Keys.

To use this form, simply copy it into any access database. It will find all the tables and field names. Two temporary table are added to the database for this process. When you close the form, they are erased. If they are not, just open and close the form again.

To scramble Text data WITHIN A FIELD, see my sample http://www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=386 - CharacterScramble.mdb .
 
Download
Access 97 (77 KB):
http://www.rogersaccesslibrary.com/forum/uploads/5/DataScramble97.zip - DataScramble97.zip
Access 2000 DAO (61 KB): http://www.rogersaccesslibrary.com/forum/uploads/5/DataScramble2k.zip - DataScramble2k.zip

 



-------------
Consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm" rel="nofollow - find out why here .<



Print Page | Close Window