Results 1 to 5 of 5
  1. #1
    Benjix1991 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2018
    Posts
    5

    Post Implementing Partial Participation

    Hi all,



    Apologies if the question has been asked and answered previously but I've not been able to find them.

    I have designed a database for work. I have a table detailing funding available that requires all details of the user/project, etc.

    In most cases, this can be progressed by the user but in a few cases requires sign off from a manager.

    Therefore, the [Manager Approval] table and the [Funding] table do have a relationship, however, the relationship is a partial participation in that the Manager Approval is not required for ALL funding requests to be progressed.

    My question is: How do I represent this in Access? Additionally, for those tuples linked through a relationship, my desire is that the deletion of a Funding award would result in the deletion of the Manager Approval details but I have experienced difficulty establishing this and as a result, extraneous data is retained.

    Any help would be appreciated.

    Many Thanks,
    Ben

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Perhaps you need a field in funding table that flags record as "manager approval required". A yes/no field could probably serve then code would validate the data. The real trick is figuring out what event to put code in.

    Deleting records should be a rare event. Why would you delete funding record? Why not just have a field that changes its status - Approved, Canceled, etc.

    Are you setting relationships in Relationship builder? Did you set cascade delete?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Further to June's advice, can you show readers your tables and relationships? A jpg of your relationships window would help.
    Generally in a funding/finance application all transactions (adds/edits/deletes) are simply flagged and not physically deleted.
    Is the requirement for Manager approval based on transaction type, transaction amount/threshold, specific fund, or specific employee...??? A little more info about your processes and logic would help with context.
    Good luck with your project.

  4. #4
    Benjix1991 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2018
    Posts
    5
    Hi there,

    I take your point that the data would not usually be deleted. GDPR comes into play next month and resultantly, our organisation is twitchy about storing data.

    Some information retained is sensitive and therefore when not required, should be able to be deleted.

    I had hoped to achieve this via a cascade delete but it's hard to see how to set up any relationship that isn't at a minimum 1..1. Anyway, I'll just write a delete query that can executed when a user deletes a funding record.

    Thanks for your help!
    Ben

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Why would cascade delete not work? Delete the main record and if there are any dependent records they will delete as well. If there aren't any dependent records the main record will still delete.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Count participation uniquely
    By WCStarks in forum Queries
    Replies: 7
    Last Post: 03-30-2018, 07:41 PM
  2. Replies: 5
    Last Post: 02-11-2018, 03:30 PM
  3. Degree of participation
    By jaydubya in forum Access
    Replies: 5
    Last Post: 11-21-2016, 01:41 PM
  4. Implementing a Delete Query
    By mwabbe in forum Queries
    Replies: 5
    Last Post: 09-20-2010, 12:09 PM
  5. Implementing Math Formula
    By cwwaicw311 in forum Forms
    Replies: 19
    Last Post: 02-24-2010, 08:10 AM

Tags for this Thread

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