Results 1 to 6 of 6
  1. #1
    Yamilet is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Jun 2013
    Location
    Texas
    Posts
    7

    Novice/ Need help at creating a relationship

    Hi, I have a database that contains a total of 1590 records. (it tracks the Last and First names, SSN, Occupation, License type and the expiration date for each license).
    As we hire new medical personnel (every two weeks) I have to add them to this data base so I figure I create a new TABLE because before they become permanent employees the hiring process is very long and it has to be tracked so I thought that I could create a table that communicate with the existing one so I wouldn't have to add their names at the end of the process but I just cannot figure it out.

    In my novice mind it sounds simple: relate the tables (somehow), create only one form (that somehow updates both tables) and is a done deal well, I already transferred all the data (one by one I must add because the system does not allow to copy or transfer) it took me over a month to get all that information into access, I cannot give up now. Please help.



    Unfortunately I cannot attach the one I created at home to practice on because is too big and the more records I delete the bigger it gets, I just don't get it.

  2. #2
    Dal Jeanis is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    1) Compact and Repair will get rid of the stored deleted data that is making your database bigger.

    2) If the system does not allow copy or transfer, what did you do to get them out? Manual typing? Literally any report out of your other system, if it can be turned into plain text, or excel spreadsheet, or even a word document, can be imported into Access. It's not trivial for a beginner, but it's something you can learn, with a little effort. Then it'll be trivial.

    3) I don't understand what the rest of your question is. You figured to do it that way, you think it's a done deal, so what is the problem?

  3. #3
    Yamilet is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Jun 2013
    Location
    Texas
    Posts
    7
    I want to create a table to track the hiring process while at the same time adding only the main relevant information to the main table (i.e. Last, first name, ssn, license number and expiration date).

  4. #4
    Dal Jeanis is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    The easiest way to do that is with a form/subform arrangement. On the form, you only put the fields from the main table that you want to use. Put the primary key for the main table, but don't display it, because the user should never see it or care what it is.

    On the second table, you have a primary key field, but it is NOT an autonumber. When you create the record, it will use the key from the main table.

    The subform will have the key field from the second table, again, invisible, because the user should never see it. That will be the master/child link field between the two forms.

  5. #5
    Yamilet is offline Novice
    Windows XP Access 2010 64bit
    Join Date
    Jun 2013
    Location
    Texas
    Posts
    7
    so, I dont need to first create a relationship between the two tables?

  6. #6
    Dal Jeanis is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Formal relationship is optional, but not difficult.

    Database tools tab, relationships, add tables that you need, click on one of the two key fields and drag to the other.

    This would be a one-to-one relationship, nothing special to do in that regard. The important thing is to make sure your second table is set up with a key field, unique, but NOT autonumber.

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

Similar Threads

  1. Creating relationship for multiple tables
    By dave john in forum Programming
    Replies: 1
    Last Post: 09-02-2012, 08:18 AM
  2. Creating a Relationship? (Having trouble)
    By lpmndcte in forum Access
    Replies: 3
    Last Post: 05-17-2012, 06:53 AM
  3. Replies: 3
    Last Post: 04-28-2012, 10:12 PM
  4. Creating relationship where none exists
    By bespra in forum Database Design
    Replies: 8
    Last Post: 09-21-2011, 11:07 AM
  5. Creating a driving relationship on a form
    By ld8732 in forum Database Design
    Replies: 1
    Last Post: 12-31-2010, 06: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