M
mccoy
hi
im using this code to my next button to navigate records but i want the
focus to be still in the same field i couldnt find my way to the expected
result
Me.ProductName.SetFocus
On Error GoTo Err_next_Click
DoCmd.GoToRecord , , acNext
Exit_NEXT_Click:
Exit Sub
Err_next_Click:
If Err = 2105 Then
Beep
Else
MsgBox (Str(Err) & " - " & Err.description)
End If
Resume Exit_NEXT_Click
End Sub
please help
im using this code to my next button to navigate records but i want the
focus to be still in the same field i couldnt find my way to the expected
result
Me.ProductName.SetFocus
On Error GoTo Err_next_Click
DoCmd.GoToRecord , , acNext
Exit_NEXT_Click:
Exit Sub
Err_next_Click:
If Err = 2105 Then
Beep
Else
MsgBox (Str(Err) & " - " & Err.description)
End If
Resume Exit_NEXT_Click
End Sub
please help