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.
Printed Date: 19 Sep 2020 at 7:52am
Software Version: Web Wiz Forums 12.03 -

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, - find out why here .


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 - CharacterScramble.mdb .
Access 97 (77 KB): -
Access 2000 DAO (61 KB): -


Consider donating $1 per sample downloaded," rel="nofollow - find out why here .<

Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 -
Copyright ©2001-2019 Web Wiz Ltd. -