Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Looking For DAO Denormalize Code? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    I have a denormalize table tbl_RevTran that I want to normalize (separate) int tbl_RevTran_Header and tbl_RevTran_Detail tables.

    lngTranSeqNo currently links transactions together in tbl_RevTran.

    A new autonumber lngRevTranID in tbl_RevTran_Header should link to tbl_RevTran_Detail

    Thanks, John


    tbl_RevTran
    TranSeq Deposit No_ Date__Code_Ref_______Dersciption
    102409 1997-00000 03/15/04 202 R4252029-E LYSIAK, MICHAEL $7.50 $0.00 232638
    102409 1997-00000 03/15/04 602 4252029-E DOG VIOLATION 2 $25.00 $0.00 232639
    102409 1997-00000 03/15/04 PCA CASH PAYMENT $0.00 $100.00 232640

    tbl_RevTran_Header
    102409 1997-00000 03/15/2004 1

    tbl_RevTran_Detail
    102409 202 R4252029-E LYSIAK, MICHAEL $7.50 $0.00 1
    102409 602 4252029-E DOG VIOLATION 2 $25.00 $0.00 1
    102409 PCA CASH PAYMENT $0.00 $100.00 1
    Attached Files Attached Files

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Looking For DAO Denormalize Code? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    Shouldn't the subject be "Looking for normalize code"?

    I have attached a text file with code; you can copy the code into a module in your database. Don't forget to set a reference to the Microsoft DAO 3.6 Object Library.
    Attached Files Attached Files

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Looking For DAO Denormalize Code? (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    Hi Hans

    Thanks for the code.

    "Looking for normalize code"? thats what I ment

    John

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •