Results 1 to 7 of 7
  1. #1
    heominhon127 is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    4

    Plz help Table Relationships

    Hi, I'm new to this forum as well as working with Access. I just got this job and they want me to create an Inventory Database from their Excel spreadsheets so they can upload to a sharepoint and use it through company employees. However, I created interfaces including forms and reports already. I could not figure out the relationships between these fields. So plz help me. I dont mind adding new fields to make this thing work....
    So far I have


    Table1 aka tblAsset: AssetID, Manufacturer, Model, Status, Condition, etc
    Table2 aka tblManufacturer: Address, City, State, Zip Code, etc
    Table3 aka tblContract: ContractType, Duration, Duration Period

    Plz tell me how to add primary keys to each table in able to create the right relationship.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    first thing you should do is take out the manufacturer name in ASSET table and replace it with a manufacturer ID field. Add the same field to the manuf's table as the PK for that table. that'll get you going.

    the PK's for the other two tables should also be autonumbers, which will almost always be referenced at the table level and should never be visible at the form and report levels (though they can be referenced through invisible columns, other controls, etc...)

  3. #3
    heominhon127 is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    4
    Hi, thank you very much I'll get it going to see if it works!

  4. #4
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by heominhon127 View Post
    However, I created interfaces including forms and reports already. I could not figure out the relationships between these fields.
    You're going about it totally backwards. Without a good foundation (the tables), the whole database will be difficult (at best) program.

    Please attach your database (no sensitive info), if possible, so we can see the table info. Or post the table names, field names and field types.

    You do have the database split, don't you??


    Steve
    --------------------------------
    "Veni, Vidi, Velcro"
    (I came; I saw; I stuck around.)

  5. #5
    heominhon127 is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2010
    Posts
    4
    Here's my DB with all the fields that I want to use. This is my first attempt at creating an Access 2007 database. Your help is appreciated.

  6. #6
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by heominhon127 View Post
    Here's my DB with all the fields that I want to use. This is my first attempt at creating an Access 2007 database. Your help is appreciated.
    *add an ID field to each table (autonumber)
    *And again, as I said previously, take out the manufacturer NAME in the ASSET table and replace it with an ID (number - LONG type)

    you can relate your tables on the NAME, but IDs are better IMO because there's less chance for confusion when similar names get entered into the program.

    there are other ways to do this: this is just my view.

  7. #7
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Sorry, I can't look at your structure......I use A2K; your db is A2K7.

    Don't give up..

    Steve
    --------------------------------
    "Veni, Vidi, Velcro"
    (I came; I saw; I stuck around.)

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

Similar Threads

  1. Table Relationships
    By goestejs in forum Database Design
    Replies: 3
    Last Post: 08-23-2010, 07:39 AM
  2. Table Relationships
    By seanp in forum Access
    Replies: 2
    Last Post: 04-15-2010, 07:12 AM
  3. Table Relationships?
    By Meld51 in forum Access
    Replies: 3
    Last Post: 03-01-2010, 08:34 AM
  4. Table Design & Relationships
    By mastromb in forum Database Design
    Replies: 16
    Last Post: 12-30-2009, 10:35 PM
  5. Table Relationships
    By jp2access in forum Database Design
    Replies: 3
    Last Post: 06-19-2009, 10:20 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