Results 1 to 4 of 4
  1. #1
    mmart33 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    23

    Form to bed availability in hospital with layout as image in background

    Hello all,

    I have been working on a hospital database and have already received help on a previous thread: https://www.accessforums.net/showthr...-form?p=116720

    Here is my next obstacle. I have a table that has hospital beds and each bed is a primary key. I can update the information with ease. One of the fields in the beds table is a YES/No labeled Available. When this is set to NO, that means the there is no patient the bed and the bed is available. When it is clicked, that means the bed is unavailable.

    I have a hospital bed layout diagram that is the actual floor diagram and bed locations. I have embedded this image in the background of a new form. What I would like is for this form to show each bed as available (make the bed green) and unavailable (make bed grey). Is this possible? The "bed" can be a rectangle, not an actual bed, just something to be placed at the specific bed location.

    THANKS again!

  2. #2
    wouterv81 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    8
    How about create a button for each bed.
    You can create some VBA code that changes the colour of the button upon clicking it...

  3. #3
    mmart33 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    23
    That's what I was thinking, but how do I associate each record (primary key of bed) as a specific button?

  4. #4
    TG_W is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    May 2010
    Location
    Manvel, TX
    Posts
    299
    It will be time consuming, but you could use the same code I used in the Doctors table to change the color to assign each button to each bed. It should be easy after the first bed code is completed because you can just copy and paste the code and change the bed number.
    Or, you can tie it to the patient table and form where you assign a doctor to a patient. The form with the map could pop up color-coded as defined in the patient table, which should probably be changed to the bed table.

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

Similar Threads

  1. Replies: 10
    Last Post: 04-25-2012, 12:12 AM
  2. Item Availability help
    By Sawyer05 in forum Database Design
    Replies: 1
    Last Post: 02-18-2012, 11:03 AM
  3. Can a form run in the background?
    By polis in forum Forms
    Replies: 3
    Last Post: 09-11-2011, 06:06 PM
  4. background image on Access 2010 form
    By lkspitz in forum Forms
    Replies: 2
    Last Post: 06-16-2011, 08:35 AM
  5. Issue with background image on form
    By sbrookebounds in forum Access
    Replies: 3
    Last Post: 01-20-2011, 02:53 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