Results 1 to 8 of 8
  1. #1
    emccalment is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    27

    Table linking

    Is there a way to make a secondary table that only exists if a certain entry in the primary table equals yes? Or is it just widely viewed as unnecessary because if there's no value you can just not fill it out for that entry? Ugh, I used to be so good at access... back in the year 2000, lol.

  2. #2
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164
    you have not provided much information to explain in more detail what you are trying to do but it sounds like you could just build a query from your original table adding a column with an expression that would return a value based on the yes/no field in that table.

  3. #3
    emccalment is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    27
    I apologize for not explaining a bit better. I'm basically just fumbling around in access currently, lol. What I want to do is have a personnel table with a field for if the person has dependants. If they do have dependants, then I want a seperate table to be made to house the information from their dependants; if they don't have depends, then I don't need that table.

  4. #4
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164
    The table can not come and go on the fly. You are going to just need to build the table and create the relationship between that table and the personnel table. It will remain empty until dependents are entered.

  5. #5
    emccalment is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    27
    Thank you. That leads me to another question then, I hope you don't mind. The idea I had was for the personnel table to be the base for a couple different tables, such as the dependants one, training, awards, etc. Now, when I make the relationship between the personnel table and the dependant table, I can add multiple dependants under one entry from the personnel table, which is perfect. Now then, if I then want to link a table for awards to it as well, I don't get that option anymore, it goes the other way. I'm not even sure if I'm going to be able to properly put this into a question, but how do I make it not happen like that? Or instead what are my other options for having multiple entries for awards, dependants, and such to one person from the personnel table?

  6. #6
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164
    I am not sure what you mean "I don't get that option anymore". You can create a one to many relationship between Personnel and several other tables at the same time. Just put the PK(primary key) from personnel in the other tables as a FK(foriegn key)

  7. #7
    emccalment is offline Novice
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Posts
    27
    Yeah, I found some tutorials online that helped me figure out my silly error. I was using two primary keys. Access just doesn't work the way my mind does, lol. Thanks for bearin with me, it really has been 8 or 9 years since I used Access, I literally remember nothing from my previous experience.

  8. #8
    jbarrum is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Apr 2009
    Location
    Houston, Tx
    Posts
    164
    not a problem. once you get your arms around it you will have some fun

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

Similar Threads

  1. Linking Microsoft Word Form to Access Table
    By jrockusa in forum Access
    Replies: 1
    Last Post: 12-03-2009, 05:09 PM
  2. Error Linking External Table
    By mcgowan.b in forum Import/Export Data
    Replies: 9
    Last Post: 11-24-2009, 07:44 AM
  3. Trouble linking a table to a query
    By wtubell in forum Queries
    Replies: 1
    Last Post: 03-26-2009, 06:34 PM
  4. Linking Tables?
    By briancb2004 in forum Access
    Replies: 0
    Last Post: 09-29-2008, 01:14 PM
  5. Linking Records
    By timryder in forum Access
    Replies: 6
    Last Post: 09-08-2008, 04:00 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