Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2011
    Posts
    7

    Question Linking columns in access to a particular column.

    Hello,

    I am new to this blog and new to Access. Please help me out!.

    I created a database of employees with multiple employee ID. Each employee has a badge for California, Florida, nevada and so on. Each badge has a due date.

    I know how to run a report from access. however, let's say I need to run a report for "Joe Smith" and all of his badges. BUT; BUT i want the report to show all the badges and the due dates for that particular employee.

    my concern is that I wouldn't want access to confuse one badge due date with another. My guess is, I would have to link or associate my California badge to my California due date badge before running the report. Therefore, when I print the report, I can see the right due date for right state badge.

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,173
    Hi,

    I think you need a table structure like the one in the attached jpg.

    succes
    NG

  3. #3
    Join Date
    Aug 2011
    Posts
    7
    HI Dear NoellaG.

    thanks for your replay. I sure can use all the help I can get!!..

    Let me see if I can understand your attachment. So you are saying that I need to have three tables and then link them together.

    Table 1. It should have all the employee's personal information.
    Table 2 It should have all the badge numbers and the due dates.
    Table 3 It should have just the State's badges.

    I don't want to ask for much... I really don't know how to link them. How can i link one table column to another?. ... and just curious If am running a report for "Joe Smith" how does access know to pull just "joe's Smith's" Badge; when the table is full of people's badges?.

    THANK YOU FOR YOUR TIME!!

  4. #4
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,173
    Hi,

    it's just the way a relational database works. You see that every table has it's PK (primary key). It's a field that has to be unique and always filled. A bit like your social security number. Once an official enters your social security number in the system, the database can retrieve every information about you.
    In the related table all you have to do is to add one field that will contain this number, here it's called the foreign key field. If the person with primary key value 123 has 3 badges then in the connecting table tblEmployeeBadges there will be 3 records with the number 123.
    The connection is made by creating a relation in the window Database Tools -> Relationships.
    Just take some time to read a basic book about Access, or an on-line basic course, and you'll be fine.

    greetings
    NG

  5. #5
    Join Date
    Aug 2011
    Posts
    7
    Dear NoellaG,


    thanks for your help!!...


    regards

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

Similar Threads

  1. Replies: 3
    Last Post: 08-08-2011, 11:02 AM
  2. combining 3 columns into 1 new column!
    By joebox8 in forum Queries
    Replies: 7
    Last Post: 07-06-2011, 01:46 AM
  3. Replies: 0
    Last Post: 03-04-2011, 10:28 AM
  4. Replies: 15
    Last Post: 01-12-2011, 05:13 PM
  5. split a column into two seperate columns
    By nybanshee in forum Access
    Replies: 2
    Last Post: 08-14-2008, 04:52 PM

Tags for this Thread

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