A
Afrosheen via AccessMonster.com
Thanks for your time
I have this code:
Private Sub txtUser1_AfterUpdate()
On Error GoTo txtUser1_AfterUpdate_Error
If Len(Nz(Me!txtUser1, "")) = 0 Then
MsgBox "does it work"
Me.txtUser1.SetFocus
End If
On Error GoTo 0
Exit Sub
txtUser1_AfterUpdate_Error:
Err.Description = Err.Description & " In Procedure " &
"txtUser1_AfterUpdate of VBA Document Form_LoginTest"
Call LogError(Err.Number, Err.Description, "txtUser1_AfterUpdate")
End Sub
It will work if there is a space entered in the text box. If I just press
enter it will go to the next field. Even when I put in a break, if I press
enter it just goes to the next field and the afterupdate will not fire.
Thanks for your help.
I have this code:
Private Sub txtUser1_AfterUpdate()
On Error GoTo txtUser1_AfterUpdate_Error
If Len(Nz(Me!txtUser1, "")) = 0 Then
MsgBox "does it work"
Me.txtUser1.SetFocus
End If
On Error GoTo 0
Exit Sub
txtUser1_AfterUpdate_Error:
Err.Description = Err.Description & " In Procedure " &
"txtUser1_AfterUpdate of VBA Document Form_LoginTest"
Call LogError(Err.Number, Err.Description, "txtUser1_AfterUpdate")
End Sub
It will work if there is a space entered in the text box. If I just press
enter it will go to the next field. Even when I put in a break, if I press
enter it just goes to the next field and the afterupdate will not fire.
Thanks for your help.