Results 1 to 4 of 4
  1. #1
    aburaed is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2011
    Posts
    2

    help with creating data restrictions

    hi, all, i'm a rookie and hoping for someone to steer me in the right direction.

    i'm designing a database based on a paper form we use to keep track of the total number of patients every month at several hospitals and wards.

    On our questionare:

    Hospital:
    Ward:
    Month:



    A Hospital could have many wards, and I would like to restrict the choices of ward for the data entry person to only be those related to the hospital they select.

    for example: Hospital A has a burn ward, a NICU ward and an ER ward.
    Hospital B has ward #1 and ward#2.

    How can I create the database so that a dataentry person would only be able to select ward #1 or ward#2 if they selected Hospital B?

    thanks for the help!

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    If the form is in single view, this type of thing:

    Baldy-Cascading Combos
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Waldenbound is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    2
    You could have a lookup table with the following fields: ID number, hospital, ward number. The ID number would would be stored in your main table (under the hospital field) which would relate to the ID in the new lookup table for the details. Then in your form you could use a multi-column combobox that allows the data entry person to select the Hospital and ward in one selection from the lookup table and store the ID in your main table. Or, if there are too many combinations for the combobox you could still use cascading combos.

  4. #4
    aburaed is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2011
    Posts
    2
    thanks,
    yeah there are many wards and hospitals and many combinations.
    im going to give this cascade combo a try, but aaa! visual basic is new to me.

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

Similar Threads

  1. Replies: 1
    Last Post: 06-18-2011, 10:00 AM
  2. Replies: 5
    Last Post: 05-20-2011, 06:18 AM
  3. Creating form for data entry
    By salisbut in forum Forms
    Replies: 5
    Last Post: 03-31-2011, 12:22 PM
  4. Form Restrictions
    By Evgeny in forum Forms
    Replies: 4
    Last Post: 04-22-2010, 03:50 PM
  5. Creating data entry form
    By ksukat in forum Forms
    Replies: 3
    Last Post: 03-11-2010, 04:55 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