T
Tony
I have created a simple database based on the Time and
Billing template in Access XP. On the Time Cards form I
have added a following code to the EmployeeID combo box,
after update event:
Private Sub EmployeeID_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[EmployeeID] = " & Str(Nz(Me!
[EmployeeID], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
I want to have to methods for selecting records or moving
through the methods - using navigation buttons or through
selection using combo box. For some reason it is not
always working. Sometimes moving through the records is
ok, sometimes is giving wrong results. Sometimes after
first selecting record using combo box switching to the
navigation buttons is not refreshing the combo box values.
Any suggestions on what I am missing, what is wrong ?
Thanks for advice.
Tony
Billing template in Access XP. On the Time Cards form I
have added a following code to the EmployeeID combo box,
after update event:
Private Sub EmployeeID_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[EmployeeID] = " & Str(Nz(Me!
[EmployeeID], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
I want to have to methods for selecting records or moving
through the methods - using navigation buttons or through
selection using combo box. For some reason it is not
always working. Sometimes moving through the records is
ok, sometimes is giving wrong results. Sometimes after
first selecting record using combo box switching to the
navigation buttons is not refreshing the combo box values.
Any suggestions on what I am missing, what is wrong ?
Thanks for advice.
Tony