I've got a table "Person" with the data of a person: Every person has a first name and a last name (2 primary keys of that table)
Then I have a bound table "Project" where each project is specified. It has 2 bound fields, "responable project first name" and "responsable project last name". Each person is responsable for one or more projects.
Now I have a continous form "Project". I have created 2 listbox for the name of the responsable. First you have a list with all the last names of the responsables. When this is specified, the list of first names is filtered, like this
Private Sub last_name_AfterUpdate()
first_name.RowSource = "SELECT first_name FROM person WHERE (((person.last_name)=" & "'" & Me![last name].Value & "'" & "));"
End Sub
Now my problem ... when the last_name list is updated, the first_name list of all the records gets the rowsource of the selected rowsource
Then I have a bound table "Project" where each project is specified. It has 2 bound fields, "responable project first name" and "responsable project last name". Each person is responsable for one or more projects.
Now I have a continous form "Project". I have created 2 listbox for the name of the responsable. First you have a list with all the last names of the responsables. When this is specified, the list of first names is filtered, like this
Private Sub last_name_AfterUpdate()
first_name.RowSource = "SELECT first_name FROM person WHERE (((person.last_name)=" & "'" & Me![last name].Value & "'" & "));"
End Sub
Now my problem ... when the last_name list is updated, the first_name list of all the records gets the rowsource of the selected rowsource