View Single Post
  #3  
Old January 24th, 2010, 01:05 AM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default One-to-one relationship

On Sat, 23 Jan 2010 16:19:03 -0800, Enid
wrote:

I am importing a DB from Filemaker with info about students (names, address,
etc.). There is just one table and because it has been used for many years,
it cannot be changed. I have created another table for additional student
enrollment information. I have created a one-to-one relationship between the
two tables using an autonumber primary key in the student table and a number
primary key in the enrollment table. I have created two forms to add
information to the tables. All new students are added via the old student
form first. When I switch to the new student form, I cannot add the student
number to the primary number field because it is bound to the Autonumber ID
form. However, I can add new records directly into the table. Because other
people will be using these forms, I would like to be able to update the
number primary key by typing in the autonumber primary key. Is there any way
to do this?

Thanks.


Simply make the additional-data form a Subform of the student form, using the
autonumber field as the Master Link Field and the foreign key as the Child
Link Field.

Or, you can include BOTH ID fields in the form's recordsource, basing the form
on a query including both tables; Access will fill in the foreign key value.
--

John W. Vinson [MVP]