B
Blair
I have this code below and it was working. The line Text48.SetFocus was
doing what it should. But now when it exicutes it comes up with a Run-time
error 2110 it says that it can't move the focus to the control Text48. I
have checked and it's not a label, visible property is set to yes and enable
property is set to yes, so what else could have caused it to start doing
this. I know it is something I have done in the coding but I don't know what
to look for. Can anyone help
Thanks Blair
Private Sub Ctl1st_MATING_GotFocus()
[1st MATING] = DLookup("[MALE NUMBER]", "QFirstMatingMaleQuery")
MaleNumber = DLookup("[Male Number]", "98MaleHistory", "[Male Number] = '" &
[1st MATING] & "'")
If IsNull([1st MATING]) Then
Beep
MsgBox "No Male Number Please Check Nest #"
Text48.SetFocus
End If
doing what it should. But now when it exicutes it comes up with a Run-time
error 2110 it says that it can't move the focus to the control Text48. I
have checked and it's not a label, visible property is set to yes and enable
property is set to yes, so what else could have caused it to start doing
this. I know it is something I have done in the coding but I don't know what
to look for. Can anyone help
Thanks Blair
Private Sub Ctl1st_MATING_GotFocus()
[1st MATING] = DLookup("[MALE NUMBER]", "QFirstMatingMaleQuery")
MaleNumber = DLookup("[Male Number]", "98MaleHistory", "[Male Number] = '" &
[1st MATING] & "'")
If IsNull([1st MATING]) Then
Beep
MsgBox "No Male Number Please Check Nest #"
Text48.SetFocus
End If