Roger's Access Library Homepage
Forum Home Forum Home > Roger's Access Library > Roger's Download Samples
  New Posts New Posts RSS Feed - DataScramble.mdb (intermediate)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Please consider donating $1 per sample downloaded, (find out why here)

DataScramble.mdb (intermediate)

 Post Reply Post Reply
Message Reverse Sort Order
Roger Carlson View Drop Down
Microsoft MVP
Microsoft MVP

Joined: 20 Feb 2008
Status: Offline
Points: 261
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Carlson Quote  Post ReplyReply Direct Link To This Post Topic: DataScramble.mdb (intermediate)
    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, find out why here.<
Back to Top
Sponsored Links

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

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