T
Tanya
Hi
I am having difficulty creating a combo box which behaves how I want it to.
Main Form I need to access Student Table:
StudentID
Surname
FirstName
Scholastic Year
Gender
Subform
Accesses another table called Unform Infringements
What I want to do is have a combo box which allows me to search for the
student by Surname&", "&FirstName which then updates the other fields in main
form, then in turn allows user to update subform.
There must be something I am missing here... I created a combo box with the
following row source for FullName
SELECT Students.StudentID, [Surname] & ", " & [FirstName] AS [Full Name]
FROM Students ORDER BY [Surname] & ", " & [FirstName];
and the error I am getting...
"The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key, or relationship.
Changethe data in the field or fields that c ontain dulicate data, remove the
index, or redefine the index to permit duplicate entries and try again."
Where am I going wrong please someone...
regards
Tanya
I am having difficulty creating a combo box which behaves how I want it to.
Main Form I need to access Student Table:
StudentID
Surname
FirstName
Scholastic Year
Gender
Subform
Accesses another table called Unform Infringements
What I want to do is have a combo box which allows me to search for the
student by Surname&", "&FirstName which then updates the other fields in main
form, then in turn allows user to update subform.
There must be something I am missing here... I created a combo box with the
following row source for FullName
SELECT Students.StudentID, [Surname] & ", " & [FirstName] AS [Full Name]
FROM Students ORDER BY [Surname] & ", " & [FirstName];
and the error I am getting...
"The changes you requested to the table were not successful because they
would create duplicate values in the index, primary key, or relationship.
Changethe data in the field or fields that c ontain dulicate data, remove the
index, or redefine the index to permit duplicate entries and try again."
Where am I going wrong please someone...
regards
Tanya