Table and Form Structure

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

Guest

I have a table, I'll call table A, that stores a value called TrainerID and
another called ContactID. I have a second table, I'll call table B, that has
a contactID and information such as first name, last name, address, city,
state, etc. There is a one to one relationship between table a and table b.
Each person in table A has one contactID and one trainerID both pointing to
the contactid key field in table b. My question is how can I set up a
relationship and form so that I can pick a contactid and a trainerid
seperately and populate with appropriate data?
 
BIll Mills said:
I have a table, I'll call table A, that stores a value called
TrainerID and another called ContactID. I have a second table, I'll
call table B, that has a contactID and information such as first
name, last name, address, city, state, etc. There is a one to one
relationship between table a and table b. Each person in table A has
one contactID and one trainerID both pointing to the contactid key
field in table b. My question is how can I set up a relationship and
form so that I can pick a contactid and a trainerid seperately and
populate with appropriate data?

Are these really one-to-one relationships (one relationship for
A.TrainerID, and one for A.ContactD)? Or are they one-to-many
relationships between table B and table A? Can a record in table B be
referred to by more than one record in table A?

The form for editing table A would probably use combo boxes based on
table B to choose values for the TrainerID and ContactID fields. To
show the related info from table B on this form, you could either
include that info as columns in the combo boxes, and set up calcualted
text boxes that draw their data directly from those columns, or else
base the form on an "autolookup" query that joins table B to table A
(twice -- once for each field) and selects the fields from table B along
with those for table A.
 

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

Subform 1
Make Payment and Deduct from Bill 2
One to many relationship 4
Suggestion for Append 3
Access2007 weird error (any suggestions) 2
Best Table Structure 2
junction tables 11
not all records show on form 2

Back
Top