selahlynch
Registered User.
- Local time
- Tomorrow, 01:54
- Joined
- Jan 3, 2010
- Messages
- 63
I have a form that is bound to a table. One can select a record using combo boxes or using a list box. Each time I change the record I want both my combo boxes and my list box to reflect this change.
Things work properly when I select a record by using a combo box. However when I select a record by using my list box, the item I selected becomes de-highlighted an instant after I select it. I don't understand why it does this.
Here is my code...
Things work properly when I select a record by using a combo box. However when I select a record by using my list box, the item I selected becomes de-highlighted an instant after I select it. I don't understand why it does this.
Here is my code...
Code:
Private Sub NameCombo_AfterUpdate()
If Not IsNull([NameCombo]) Then Me.Recordset.FindFirst "[AccessID] = " & [NameCombo]
End Sub
Private Sub NumberCombo_AfterUpdate()
If Not IsNull([NumberCombo]) Then Me.Recordset.FindFirst "[AccessID] = " & [NumberCombo]
End Sub
Private Sub EmployeeList_AfterUpdate()
If Not IsNull([EmployeeList]) Then Me.Recordset.FindFirst "[AccessID] = " & [EmployeeList]
End Sub
Private Sub Form_Current()
Call RefreshImage
EditToggle = False
[NameCombo] = [AccessID]
[NumberCombo] = [AccessID]
'this line is where my listbox selection becomes de-highlighted
[EmployeeList] = [AccessID]
End Sub