Hi All,
I have a form that contains a combobox dropdown for which I want to programmatically set the selected index. I've dug through the combobox properties and found no SelectedIndex, but have found the ListIndex, though whenever I try to set the ListIndex I get errors.
What I have is a form that lists information from one of the tables in my db, but for each record in the db, only the employeeID is kept. Since that doesn't really help the user, I've had to populate the list using a separate query that brings back "LName, FName", but I need the dropdown to select the proper name in relation to the ID in the db. I'm trying to do this in the Form_Current event, but so far no luck.
Any ideas on how to do this, or other methods of displaying the names in the dropdown and have them selected in reference to the foriegn key kept in the table?
Thanks.
devRyan
I have a form that contains a combobox dropdown for which I want to programmatically set the selected index. I've dug through the combobox properties and found no SelectedIndex, but have found the ListIndex, though whenever I try to set the ListIndex I get errors.
What I have is a form that lists information from one of the tables in my db, but for each record in the db, only the employeeID is kept. Since that doesn't really help the user, I've had to populate the list using a separate query that brings back "LName, FName", but I need the dropdown to select the proper name in relation to the ID in the db. I'm trying to do this in the Form_Current event, but so far no luck.
Any ideas on how to do this, or other methods of displaying the names in the dropdown and have them selected in reference to the foriegn key kept in the table?
Thanks.
devRyan