Link 2 tables in the same database

G

Guest

I have a database for tracking employee records with only 2 tables (Employees
and Accounts). What I want to do is to be able to pull the employeeID from
the employee table and place it in the employeeid in the acconts table. For
example, in the employee table, I have the name, title, department, and
employee id, then I have the accounts table where this employee could have
multiple accounts. I know I have a one to many relationship so when I create
the report I can see all the accounts for the employee, so what I am trying
to do is have the employee id from the employee table automatically populate
in the account table so I do not have to input this number whenever I am
entering new account numbers for the employee.

Any suggestions?
 
J

John W. Vinson

I have a database for tracking employee records with only 2 tables (Employees
and Accounts). What I want to do is to be able to pull the employeeID from
the employee table and place it in the employeeid in the acconts table. For
example, in the employee table, I have the name, title, department, and
employee id, then I have the accounts table where this employee could have
multiple accounts. I know I have a one to many relationship so when I create
the report I can see all the accounts for the employee, so what I am trying
to do is have the employee id from the employee table automatically populate
in the account table so I do not have to input this number whenever I am
entering new account numbers for the employee.

Any suggestions?

Use a Form based on the Employee table, with a Subform based on the
Accounts table; use the EmployeeID as the master/child link field.

John W. Vinson [MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top