Hi All,
I've got a multiselect listbox on my form. I've figured of how to save the data from the form to the db, but I can't figure out how to reselect the items when the form loads at a later time.
Does the form object have an OnLoad event that I could use to initialize my Listbox?
What I have is this: 3 tables; tblCourses, lutTeachers, lnkCT. tblCourses holds course info, lutTeachers holds a list of teacher names, and lnkCT hold the many-to-many relationship markers between the first two tables.
When the form loads, the listbox is populated by the lutTeachers table. After that happens, I need it to look in the lnkCT table and select all the items that relate to the courseID, if there are any. How would I go about doing this?
Thanks for the help.
devRyan
I've got a multiselect listbox on my form. I've figured of how to save the data from the form to the db, but I can't figure out how to reselect the items when the form loads at a later time.
Does the form object have an OnLoad event that I could use to initialize my Listbox?
What I have is this: 3 tables; tblCourses, lutTeachers, lnkCT. tblCourses holds course info, lutTeachers holds a list of teacher names, and lnkCT hold the many-to-many relationship markers between the first two tables.
When the form loads, the listbox is populated by the lutTeachers table. After that happens, I need it to look in the lnkCT table and select all the items that relate to the courseID, if there are any. How would I go about doing this?
Thanks for the help.
devRyan