M
Michael
Hi Folks - In version 2003, if I enter an account# in a textbox and press
the Enter key, the following code runs and the focus is returned to the
textbox:
Private Sub Combo202_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Form_frmReviews.RecordsetClone
rs.MoveFirst
rs.FindNext "[medrecno] = '" & Me![Combo202] & "'"
If Not rs.NoMatch Then
Form_frmReviews.Bookmark = rs.Bookmark
Else
Me.lblCaseNotFound.Visible = True
End If
Me.cmdFindNext.Enabled = True
Me.Combo202.SetFocus
End Sub
-----
In version 2000, if I enter an account# in a textbox and press the Enter
key, the following code runs and the focus is sent to the NEXT field.
Is there a property change I can make to keep the focus on the original
textbox after the update? Thanks.
Michael
the Enter key, the following code runs and the focus is returned to the
textbox:
Private Sub Combo202_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Form_frmReviews.RecordsetClone
rs.MoveFirst
rs.FindNext "[medrecno] = '" & Me![Combo202] & "'"
If Not rs.NoMatch Then
Form_frmReviews.Bookmark = rs.Bookmark
Else
Me.lblCaseNotFound.Visible = True
End If
Me.cmdFindNext.Enabled = True
Me.Combo202.SetFocus
End Sub
-----
In version 2000, if I enter an account# in a textbox and press the Enter
key, the following code runs and the focus is sent to the NEXT field.
Is there a property change I can make to keep the focus on the original
textbox after the update? Thanks.
Michael