Results 1 to 4 of 4
  1. #1
    ExponentiaI is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2017
    Posts
    2

    Deleting a record and all associated information

    Good evening, I hope someone can help?

    I am currently building an access database to manage a hobby group/club that I run.

    I've manage to build all of the queries and macros to get me up to the operational point, however one of the issues I have is if an attendee decides to leave.

    The group consists of people under 16 and therefore they are linked to a guardian field for payment of subs, etc. The challenge I have is wanting to be able to potentially remove the attendee, and deduct it from the monies paid by the guardian - to give a new total balance (as they may have more then one participant that they look after).
    I've used the built in "button" tool to remove the individual record, but then this shows the guardian as being significantly in credit - when in reality the money needs to be removed.

    I hope this makes sense, and someone out there can help me with this final milestone?



    Thank you

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    difficult to answer without knowing your db design - but look at your table relationships to a) enforce referential integrity and b) cascade delete related records.

    Also, by way of note, it is generally advised not to delete data, but to have a flag to indicate the record should be ignored which can then be used as criteria in queries to ignore them. There are a number of benefits - you can still 'undelete' it if it was flagged in error and you maintain a proper history - perhaps the person concerned has been with you for three years, deleting them would affect the view of the previous years.

  3. #3
    ExponentiaI is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Mar 2017
    Posts
    2
    Quote Originally Posted by Ajax View Post
    difficult to answer without knowing your db design - but look at your table relationships to a) enforce referential integrity and b) cascade delete related records.

    Also, by way of note, it is generally advised not to delete data, but to have a flag to indicate the record should be ignored which can then be used as criteria in queries to ignore them. There are a number of benefits - you can still 'undelete' it if it was flagged in error and you maintain a proper history - perhaps the person concerned has been with you for three years, deleting them would affect the view of the previous years.

    Hi Ajax

    Thank you for replying, it's frustrating I'm so close. I like the idea of being able to hide them rather than delete them - for all of the benefits you have mentioned. I hadn't thought about flagging them as active/inactive.

    Thank you

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    if you are going this route, it doesn't have to be a check box - could be a leave date for example and/or a text box to show why left - reached max age, moved away, got bored etc

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Deleting certain information on Report
    By AJ7 in forum Reports
    Replies: 2
    Last Post: 09-11-2016, 02:39 AM
  2. Deleting a record
    By alexc333 in forum Access
    Replies: 7
    Last Post: 07-26-2011, 10:43 AM
  3. Problem deleting record
    By Vikki in forum Access
    Replies: 8
    Last Post: 02-26-2010, 11:07 AM
  4. Error when deleting a record
    By access in forum Forms
    Replies: 5
    Last Post: 06-15-2009, 12:33 PM
  5. Deleting Record Contents, not complete record...
    By Charles Waters in forum Access
    Replies: 2
    Last Post: 06-24-2008, 12:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums