Welcome to SPN

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

Sign Up Now!
  1. Guest ji, please consider donating today!   Become a Supporter    ::   Make a Contribution   
    Monthly (Recurring) Target: $300 :: Achieved: $95

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)
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page