Results 1 to 3 of 3
  1. #1
    justcop is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    1

    View all records in form view, unless record has a specific value in a specific field.

    Hello all,



    I am brand new to using access so please be gentle! I just started trying to learn how to use it yesterday, having said that I am fairly technically literate and am reasonably familiar with mid level complexity excel spreadsheets, so I am hoping I can pick things up quite quickly. Now my question:

    I have a table which includes the details for a list of patient data which we have collected. This information must be easily added to and edited by clinicians in the form view. I already have a beautiful form which allows that to be possible. What I am trying to do is have a tick box on the form which allows the data to be removed from this view.

    The complexity (at least for me!) is that once a record is deleted, I want to keep a record of it.

    It seems to me that the best way, would be to have the main table of patients both current and deleted, there would then be a field within this that would state whether they were current or deleted. What I would like to know, is how I can then have a form view that just includes only all the current patients, so that clinicians can see all the relevant data in the front end, but I retain all the information in the backend.

    I look forward to hearing some suggestions, I'm fairly sure the answer is pretty easy. Thanks in advance.

    Justcop

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Yes, table with field - perhaps a Yes/No type and named IsCurrent.

    Set the form's RecordSource to a query object (or SQL statement) that has filter criteria, something like:

    SELECT * FROM tblPatients WHERE IsCurrent=True;
    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
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You can have a status field and filter the form on that. Base the form on a query that includes the appropriate criteria to only include the desired records. The status field can be a yes/no field, or a numeric/text field if you want to have more possible statuses.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. View only specific records in form view
    By drnld in forum Access
    Replies: 5
    Last Post: 07-22-2014, 12:21 PM
  2. Replies: 9
    Last Post: 10-09-2013, 08:45 AM
  3. Sum Specific Rows as Totals in Datasheet View
    By CementCarver in forum Forms
    Replies: 4
    Last Post: 07-31-2013, 07:31 AM
  4. Replies: 1
    Last Post: 06-09-2013, 04:50 AM
  5. Replies: 3
    Last Post: 05-28-2011, 09:54 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