Duplicate Values help

johnwayneoftheseas

Registered User.
Local time
Today, 04:50
Joined
Aug 8, 2008
Messages
14
I have a subform on a main form that details the following:
- School Type (Elementary, High School, University)
- School Name
- Year in School (Freshman, Sophomore, Junior, Senior)
- Year (Year that the student was a Freshman, Sophomore, Junior, Senior)

I changed School Type and Year in School to combo boxes on the form.

Everything looks and works great until I try to add a second line, when I get the error that says "The changes you requested were not successful because they would create duplicate values in the index, primary key, or relationship."

I've made sure that things are not indexed (save "Individual," which is the foreign key from tblIndividuals where the - you guessed it! - main individual's information is stored). What am I doing wrong?!

Thank you!!
 
What do you have in your Master / Child links for the subform container (control on the main form that houses the subform on the main form)?
 
Link Master Fields: IndID (on tblIndividuals)
Link Child Fields: Individuals (which is IndID)
 
Can you post a screenshot of your relationships (if you've set them)? Or, just post the database.
 
Your tblContacts and tblSchool have a ONE-TO-ONE relationship with tblIndividuals so it isn't going to let you add more than one to either of those.
 

Users who are viewing this thread

Back
Top Bottom