Results 1 to 3 of 3
  1. #1
    w00tage19 is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2010
    Posts
    1

    Automatic checkbox based on value entered in form

    I've created a database that keeps track of patient info, and one of the fields is systolic blood pressure or SBP. I have another field that is a yes/no checkbox called "is SBP less than 90?" Is there a way to have that checkbox automatically be checked in the table when the SBP fits the condition? I wrote a module function that can do it for reports, but it would be nice if the checkbox can be checked automatically in the table when a user enters all of the info on the form. It seems like there should be an easy solution to this problem, but I can't seem to find it (I've only been using Access for like a week, but I'm a decent programmer, so a solution that involves writing code is fine by me). Any help would be appreciated! Thanks.

  2. #2
    ConneXionLost's Avatar
    ConneXionLost is offline Simulacrum
    Windows XP Access 2003
    Join Date
    Jan 2010
    Location
    Victoria, Canada
    Posts
    291
    My advice would be: "Don't store calculated fields in a table."

    Cheers,

  3. #3
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,046
    Hi,

    I concur with conneXionLost, but you could add a calculated check field on your form with as control source :
    = ([SBP] <90)

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

Similar Threads

  1. Replies: 2
    Last Post: 05-05-2010, 02:52 PM
  2. Checkbox in continous form
    By senthilrg in forum Access
    Replies: 11
    Last Post: 12-05-2009, 08:49 AM
  3. Replies: 0
    Last Post: 11-10-2008, 12:32 PM
  4. Make entries uneditable based on checkbox
    By acehowell in forum Programming
    Replies: 1
    Last Post: 04-19-2007, 07:54 AM
  5. Automatic Filtering when Opening form
    By Karyn-2000 in forum Forms
    Replies: 1
    Last Post: 12-03-2005, 09:29 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