J
Jean-Paul
I wrote following code:
Private Sub Stop_rit_AfterUpdate()
If Me!Stop_rit < Me!Start_rit Then
If MsgBox("Eind-kilometers zijn lager dan begin-kilometers",
vbExclamation + vbOKOnly, "Let op!") = vbOK Then
End If
End If
Me!Stop_rit.SetFocus
End Sub
When the value of Stop_rit is lower then the value of Stop_rit the
messagebox is displayed... no problem.
I want to give Stop_rit focus again so the user can correct the entered
data.
I always get focus on the following field and not on the Stop_rit field.
What am I doing wrong?
Thanks
Private Sub Stop_rit_AfterUpdate()
If Me!Stop_rit < Me!Start_rit Then
If MsgBox("Eind-kilometers zijn lager dan begin-kilometers",
vbExclamation + vbOKOnly, "Let op!") = vbOK Then
End If
End If
Me!Stop_rit.SetFocus
End Sub
When the value of Stop_rit is lower then the value of Stop_rit the
messagebox is displayed... no problem.
I want to give Stop_rit focus again so the user can correct the entered
data.
I always get focus on the following field and not on the Stop_rit field.
What am I doing wrong?
Thanks