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

>
Want a good read? Try The Summer of His Life (available on Amazon!)

Denormalize.mdb (intermediate)

 Post Reply Post Reply
Author
Message
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: Denormalize.mdb (intermediate)
    Posted: 01 Aug 2008 at 5:19am

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

Denormalize.mdb

Assume the tables below:

Denormalize takes the data in table1 and creates table2. Thus it denormalizes a normalized table. This has 4 subs/functions. "DenormalizeTable" is the main sub which calls the others. "CreateDenormalizedTable" deletes and re-creates table2. It calls "MaxNumberOfFields" to decide how many fields to create. Lastly, "DenormalizeIt" does the denormalization.

To execute it, go the module, put your cursor in the first sub, and push the execute button.

TABLE1
ID   Value
1    10
1    20
2    30
2    40
2    50
2    60
2    70
3    80
3    90
4    100

TABLE2
ID  Value1  Value2  Value3  Value4  Value5
1   10
2   30      40      50      60      70
3   80      90
4   100
 
Download
Access 97 (32 KB):
Denormalize97.zip
Access 2000 DAO (48 KB): Denormalize2k.zip

Consider donating $1 per sample downloaded, find out why here.<
Back to Top
Sponsored Links
>
Want a good read? Try The Summer of His Life (available on Amazon!)

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.