Hi,
I am making a Training Class and Required Reading Tracking database. With all that I am learning I wanted to give a try to something a bit more sophistication.
I am working with unbound form called frmUpdateEmployee. On this form I have two Unbound Listboxes (DepartmentList and EmployeeList) and a subform called subfrmEmployeeInfo.
I have finally got it to work so that I can click on a department in the DepartmentList and an Employee’s name comes up in the EmployeeList and when an Employee’s name is clicked on, all their information appears in the subfrmEmployeeInfo.
I have the default value of both list boxes set to [DepartmentList].[ItemData](0) and [EmployeeList].[ItemData](0) which works great when I first open the form. The problem I am having is when I click on a department that is not the default. The EmployeeList updates with the employees in that department (have the on click event for both list boxes set to me.refresh), but an employee isn’t selected by default from the EmployeeList box.
How do I get my list box to set its focus on the first found item in this list with each and every update.
Hope I haven't been too confusing. Thanks in advance for any help you can offer me in getting this fixed.
Ellie
**Using Access 97**
lena.wood@wgint.com (work)
elliefant@starband.net (home)
I am making a Training Class and Required Reading Tracking database. With all that I am learning I wanted to give a try to something a bit more sophistication.
I am working with unbound form called frmUpdateEmployee. On this form I have two Unbound Listboxes (DepartmentList and EmployeeList) and a subform called subfrmEmployeeInfo.
I have finally got it to work so that I can click on a department in the DepartmentList and an Employee’s name comes up in the EmployeeList and when an Employee’s name is clicked on, all their information appears in the subfrmEmployeeInfo.
I have the default value of both list boxes set to [DepartmentList].[ItemData](0) and [EmployeeList].[ItemData](0) which works great when I first open the form. The problem I am having is when I click on a department that is not the default. The EmployeeList updates with the employees in that department (have the on click event for both list boxes set to me.refresh), but an employee isn’t selected by default from the EmployeeList box.
How do I get my list box to set its focus on the first found item in this list with each and every update.
Hope I haven't been too confusing. Thanks in advance for any help you can offer me in getting this fixed.
Ellie
**Using Access 97**
lena.wood@wgint.com (work)
elliefant@starband.net (home)