Results 1 to 3 of 3
  1. #1
    Leviathin is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    1

    The proper way to add 34 checkboxes and to get it to show in a query or new form if it has to.

    I have spent all day searching thru google to find an answer, but I am at a loss. I am a Newbie when it comes to access so please be gentle.

    My issue is, I am creating a new database to handle new medical patients coming into our small clinic, nothing fancy, just 3 forms with a single subform. Originally what I wanted was to add a bunch of check boxes for the 34 most common medical conditions that we see. The process would be that on the main form, you click the button "Add new conditions" and a new form pops up with the 34 most common conditions, you select the 5 or 6 you need and close the form. At this time I also wanted those 5 or 6 conditions that you just selected to show up under the conditions heading of the main form, just so you could see them as you continue filling out the form, everything you input will be reported out later.



    While I was trying to figure out how to "show" those selected conditions (which I was never able to figure out) I came across a couple of posts saying that just doing check boxes for something like this would be inefficient and "not good database writing." Their logic seems to make sense and I can get on board with it, but after recreating the tables in a more "efficient manner", I realized I can't have my check boxes. The other posts were all describing how to accomplish what I want by using drop down lists and what not, but I would really like to keep the check boxes.

    The "more efficient" way involves making each medical condition a separate report in a new table and then using relationships to link the conditions to a specific patient, but now I can't link a "yes/no" box to the condition to be selected in my form. The new table has 3 fields, Condition ID, Condition Name and a Check box. I created the intermediate table to be able to link the patients to the conditions, but linking each condition to it's own Check box is beyond me.

    To me, the concept seems simple enough and hopefully I am just missing something small. If anyone has any suggestions or thoughts, they would be greatly appreciated.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    The "more efficient" way involves making each medical condition a separate report in a new table and then using relationships to link the conditions to a specific patient, but now I can't link a "yes/no" box to the condition to be selected in my form.
    This quote from your post leads me to believe you are trying to use Access/database terms to help describe your situation, but it's really rambling and confused.

    You asked for a tip, and I'm going to suggest you work through this tutorial to understand database design and get some basic concepts clear before you work on your own database.

    Good luck.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    The 'new table' does not need checkbox. You need a table of all possible conditions that would be the source of items for a combobox. You need a table of patient info.

    Then you need a 'junction' table that holds records to associate conditions with patients. Then a form/subform arrangement for data entry - main form bound to patient table and subform bound to junction table with combobox to select condition.

    You could have an unbound form with the 34 checkboxes but then would need a bunch of code to save records into the junction table.

    I agree with Orange - you need a better understanding of relational database principles and Access functionality.
    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. Update query for checkboxes
    By scoe in forum Queries
    Replies: 2
    Last Post: 06-20-2014, 07:12 AM
  2. Replies: 13
    Last Post: 07-03-2013, 03:08 PM
  3. Replies: 1
    Last Post: 11-09-2012, 10:45 AM
  4. Replies: 3
    Last Post: 11-07-2012, 08:44 PM
  5. Replies: 4
    Last Post: 07-12-2011, 09:49 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