Auto Populate

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a small database.
tblDept
id
dept

tblSection
id
section

tblUsers
name
dept
section

I have tried to join them dept to section to autopopulate the section field
but that did not work. I even tried to just make one tbl and not seperate
dept/section but that did not work either..
 
Add fields as indicated below and then set one-to-many relationship from
primary keys to foreign keys.

tblDept
id - primary key
dept

tblSection
id
section
DeptID - foreign key - related to tblDept.id

tblUsers
name
dept -foreign key - related to tblDept.id
section -foreign key - related to tblSection.id
 

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

Back
Top