Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Making sure all changes are caught

Discussion in 'Information Technology' started by John, Jul 28, 2006.

  1. John

    John
    Expand Collapse
    Guest

    Hi

    I have a detail subform. I need to track any change to a record i.e.
    addition, deletion or change so I can update the totals. What events do I
    need to trap on the sub form?

    Thanks

    Regards
     
  2. Loading...

    Similar Threads Forum Date
    Opinion Making Sure Photos Aren't Muddling the Message (Guidelines) Breaking News Oct 10, 2011
    Partition 1947 - The Making Of Refugees History of Sikhism Mar 18, 2015
    Making The Change With Hope & Faith - Sikh Advocate Prabhjot Singh, Md Sikh Youth Mar 11, 2015
    Heritage Sikhs making Their History in Malaysia History of Sikhism May 18, 2013
    Inspirational Making a Difference: A School for Girls in Kenya Videos Mar 25, 2013

  3. Dirk Goldgar

    Dirk Goldgar
    Expand Collapse
    Guest

    "John" <John@nospam.infovis.co.uk> wrote in message
    news:ucx2WwogGHA.4712@TK2MSFTNGP05.phx.gbl
    > Hi
    >
    > I have a detail subform. I need to track any change to a record i.e.
    > addition, deletion or change so I can update the totals. What events
    > do I need to trap on the sub form?


    I'm not convinced that you should need to update any totals -- shouldn't
    they all be derived from a query or an aggregate function? But if you
    do need to catch all updates, the subform's BeforeUpdate, Delete, and
    AfterDelConfirm events are probably what you need. BeforeUpdate will
    catch the saving of new records as well as edited ones. The Delete
    event will allow you to tabulate data from each individual record that
    is deleted, while the AfterDelConfirm event lets you determine whether
    those records were really deleted, or whether the user cancelled the
    delete.

    --
    Dirk Goldgar, MS Access MVP
    www.datagnostics.com

    (please reply to the newsgroup)
     

Share This Page