Results 1 to 8 of 8
  1. #1
    charlieb is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Feb 2015
    Posts
    20

    new to access need help with tables


    I am new to access just installed Access13. I am trying to set up a practice management solution for my law office. The table I need to create would contain too many fields (probably >260) so I broke it up into several tables and created a one to one relationship between them. I probably am not doing this the right way, but I figured that if I have an ID (autonumber) field in each table and connect the tables by the ID field that would be like having one big table. When I did that and created a form including all tables it worked fine if there was some data input into at least one field in each table (so that a record is created in that table maintaining the integrity for the same record in each table). If I did not have some info in at least one field of each table then that table will not advance to the next record along with the others that did have some data input. To try to correct the problem, I created a field in each table that I labeled Invisible (Invisible1, Invisible2, etc.. for each table) and set the properties to invisible, with a default value of 1. By including that field in the Form and setting the size of the textbox to 0 it takes up no space on the form and insures that there will be some input from at least this field in every table to keep the records across these tables straight. That creates the problem that records with no real info can be created in my database (since there will always be some input from that Invisible field in every table) which I don't want. What is the best way to do this? Sorry for the long post.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Do not connect 1-to-1 tables on autonumber fields. One table can have autonumber PK and other tables must have number field to hold the PK value as a FK.

    You probably have so many fields because the data structure is not normalized.

    A query also cannot have more than 255 fields.
    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.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    What do all the fields represent? You are probably not normalizing the data:

    Fundamentals of Relational Database Design -- r937.com
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    charlieb is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Feb 2015
    Posts
    20
    Quote Originally Posted by pbaldy View Post
    What do all the fields represent? You are probably not normalizing the data:

    Fundamentals of Relational Database Design -- r937.com
    The reason I have all these fields is because of the number of parties involved. I practice personal injury law so I need to input and store not only client personal and contact info but contact and policy info from Insurance Companies (often 3-4 different companies), opposing parties/attorneys, 7-8 treating doctors, Hospitals, Court info etc.. for each client.

    I see no commonality between my tables, not sure how to join them and make them advance, record by record in conjuction with each other.

  5. #5
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Let me third the suggestion you review a normalized structure. Let me give you an example

    Let's say you have a customer but the customer has multiple locations.

    You do not want the following:

    Code:
    CustomerID  CustomerName  Address1  City1  State1  Address2  City2  State2  Address3  City3  State3
    1           CustomerA     Add1      AAAAA  ME      Add2      BBBBB  OR      Add3       CCCCC  TX
    Rather you want something more like:

    Code:
    CustomerID  CustomerName
    1           CustomerA
    
    AddressID  CustomerID  Address  City  State
    1          1           Add1     AAAAA ME
    2          1           Add2     BBBBB OR
    3          1           Add3     CCCCC TX
    Not only does it save you storage space but it makes dealing with your data a lot easier.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Normalization would mean a table for each of those entities and multiple records. So if the case has 1 doctor or 20, they can all be associated. The only other alternative to reduce the number of fields is with multi-value fields and I NEVER use multi-value fields.

    Could maybe even have 1 table to list all the people connected - have another field for their type of association (plaintiff, defendant, witness, attorney, doctor, insurer, etc).
    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.

  7. #7
    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,726
    Charlie B,

    It appears you are not only new to Access but new to database. Do yourself a big favor --work through this tutorial ASAP to get a hands-on appreciation of Tables and Relationships, Normalization, Entity Relationship Modelling and a plan.

    When you're finished, there are some videos and links here to help put some additional concepts into perspective for you.

    Good luck.

  8. #8
    charlieb is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Feb 2015
    Posts
    20
    Thank you all for the help, I will review these suggestions tonight after work

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

Similar Threads

  1. Need help on ms access 2013 tables
    By stereojack in forum Access
    Replies: 7
    Last Post: 08-06-2014, 01:51 AM
  2. Replies: 4
    Last Post: 12-17-2013, 02:44 AM
  3. How to edit MS Access tables via web
    By russb in forum Access
    Replies: 1
    Last Post: 06-22-2013, 12:46 PM
  4. Replies: 1
    Last Post: 08-09-2012, 03:51 PM
  5. Access Tables
    By pianoboy11 in forum Access
    Replies: 2
    Last Post: 03-03-2010, 07:21 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