Hi all, I have a problem with a lookup field on a join table
That is, I have a table that joins students to courses called StudentCourseJoin obviously
it holds an id for both course and student
The dictionary has RI for these, the SCJ:Student_Key has a single field SCJ:StudentID
it links to the student primary key which has a single field the STU:ID nothing shonky here!
So in the form Update_StudentCourseJoin the id field has a lookup on the student table which it orders by student last name
The student table has thousands of records, my end users has found that if they select a last name of Thorpe the lookup list shows 5 people with that name.
If you select the third person named Thorpe - in this case "G Thorpe" then a trace statement after lookup shows id=20946, as does postUpdate BUT the id that is saved is ALWAYS the first Thorpe, Sarah ID=20944
I have tried creating this form from scratch using the Wizard template so there is no code interfering with the save, and it does the same behavior
attached is the dictionary RI and a view of the students and the settings for the lookup
[attachment deleted by admin]