Results 1 to 7 of 7
  1. #1
    Nixx1401 is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    Feb 2010
    Location
    Barbados
    Posts
    115

    Help creating a form

    I am creating this database to track inmate info from intake to release. I am in the process in creating the housing/accomodation form but i am experiencing some challenges. the relationship is 1 inmate 2 many housing. what i would like to achieve is when an inmate is moved from one housing unit to another his old cell is shown as available. when he is admitted/moved only available cells are displayed to be selected. any suggestions how i should design this form any code that is needed pleases assist me im a novice in certain aspects of access. thx



    Currently i have a cell table listing the amount and type of max cells available

    Nixx

  2. #2
    srbond is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Posts
    2
    You will need a table that lists all unique cells, available or occupied.

    Then you will need to set up a table that cross references the inmate table key with the cell table key to maintain history of cells that the inmate has been in along with the most current cell (can be indicated by a boolean value in the table).

    That cross reference table can then be used to query against the cell table to see which cells are open and can also be used to query against the inmate table to see the current cell the inmate is in.

    At least that is how my jumbled up mind sees it.


    Good luck!

  3. #3
    Nixx1401 is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    Feb 2010
    Location
    Barbados
    Posts
    115

    Creating a form

    I mixed up my previous information here it is

    I have attached my db the bed table is the one with the type of cells
    the main table is the inmate info table

    There are single cells, triple cells and dormitories n they are cell numbers

    can you explain your email alittle bit more or what the necessary changes i need to make. i need to create a table with the inmate number and the information from the bed table

    Please explain a little bit more

    Nixx

  4. #4
    Join Date
    May 2010
    Posts
    339
    All I can say is WOW! I took a quick peek at your relationships.
    I have some thoughts on your project.

    First I think you really need to BOIL your tables down just a weeeee bit.
    Some tables could be combined to reduce the number.
    Example: Ethnicity, Nationality, Religion could be one table.
    tblclassification and tblclassification code is another.
    Also Date is a reserved word.
    What do the prefix str and det mean? Just curious.

    Good luck
    Richard

  5. #5
    Nixx1401 is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    Feb 2010
    Location
    Barbados
    Posts
    115
    str stands for string and dte stands for date

  6. #6
    Nixx1401 is offline Competent Performer
    Windows Vista Access 2003
    Join Date
    Feb 2010
    Location
    Barbados
    Posts
    115
    what are your thoughts on inmate cell accomodation need some help with this

  7. #7
    Join Date
    May 2010
    Posts
    339
    If I were you, I would break all the relationships. Then make a printout of your relationships (see attached). I would sit down at your desk with printout in hand, and start high lighting similar tables. The good thing is you have all the info within this structure. This may take many passes before its more normalized. After that I would set a primary key, a (autonumber) will do just fine. Example of that might be your tblAddress

    Code:
    Your version
    strInmateNo
    strAddressLn1
    strAddressLn2
    strCountry
    Code:
    My version
    AddressID - Primary Key Autonumber
    strInmateNo
    strAddressLn1
    strAddressLn2
    strCountry
    After the tables are more normalized with primary keys w/autonumbers. Then you would start thinking about Foreign Keys. The process keeps moving forward.

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

Similar Threads

  1. Creating Formula In The Form
    By mastee in forum Access
    Replies: 3
    Last Post: 04-19-2010, 05:52 PM
  2. Creating data entry form
    By ksukat in forum Forms
    Replies: 3
    Last Post: 03-11-2010, 04:55 PM
  3. Creating Filters on a Form
    By Nixx1401 in forum Access
    Replies: 4
    Last Post: 02-27-2010, 05:32 AM
  4. Creating an Inventory Form in Access
    By KIDRoach in forum Forms
    Replies: 0
    Last Post: 09-13-2009, 11:39 PM
  5. Creating Form from Normalized Tables
    By heathers in forum Forms
    Replies: 2
    Last Post: 09-10-2009, 03:43 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