Results 1 to 6 of 6
  1. #1
    merlin777 is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    117

    strategy for removing or keeping ex-clients

    I'm designing a database that records patient appointments for 25 patients and 10 therapists.

    What i'm wondering is the best approach for dealing with ex-patients. Here are my considerations:

    • if a patient leaves, they are unlikely to return and if they do it would be easy enough to add them again.
    • if i delete them (there will be a table for patients linked to the main appointments table) then all their old appointments would be deleted too (or would they)
    • that saves space and speed but someone may want to look back through old appointments
    • if i don't delete them, the list of patients will get longer and full of redundant entries and increasingly inconvenient to pick from lists




    is there a strategy for dealing with this scenario?

  2. #2
    mrojas is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2013
    Location
    Concord California
    Posts
    72
    I would consider keeping, among other tables, two sets of tables, one for active and one for inactive patients. The first set, call it the master, would have a Yes/No field indicating if patient is active. If this field is set to yes (True), then you move the record, copy to other set of tables, then delete from master.
    When adding a patient, check first the master and then the Inactive set of tables. If you find it in the Inactive, prompt the user if he/she wants to retrieve information and act accordingly.

  3. #3
    merlin777 is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    117
    thanks - is that a common approach?

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    if i don't delete them, the list of patients will get longer and full of redundant entries and increasingly inconvenient to pick from lists
    Deleting inactive patients would be bad in my opinion. You could be asked about the patient in 2 to 3 (or 4 or 5) years.

    I would add an Active (or Inactive) status field in your patient table. That way you only have to search one table. It also doesn't destroy the FK links and you don't a have to try and move the patient back to the patient table - just check (or uncheck) a check box. Plus, it is easier for reporting - to determine which patients were seen (active) in a year.

    that saves space
    Not something you really have to worry about nowadays.


    if i delete them (there will be a table for patients linked to the main appointments table) then all their old appointments would be deleted too (or would they)
    Yes they would be. Or should be - otherwise you would have a lot of orphan records in the related tables.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I agree with Steve - one table with status field. I am of the opinion that deleting records should be a rare event.
    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.

  6. #6
    merlin777 is offline Competent Performer
    Windows Vista Access 2007
    Join Date
    Sep 2011
    Posts
    117
    thanks guys

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

Similar Threads

  1. Replies: 9
    Last Post: 02-12-2013, 03:14 PM
  2. Looking for a strategy
    By 10 Gauge in forum Access
    Replies: 1
    Last Post: 08-29-2011, 09:03 AM
  3. Event Log strategy
    By kman42 in forum Database Design
    Replies: 1
    Last Post: 04-16-2011, 07:11 AM
  4. Strategy Question
    By vassa in forum Programming
    Replies: 1
    Last Post: 01-29-2010, 10:32 AM
  5. Design strategy
    By mel_herndon in forum Database Design
    Replies: 0
    Last Post: 07-20-2009, 07:40 AM

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