F
Fly Girl
OK, I'm really feeling like an idiot here and I need
someone to either tell me to get a grip or explain why
this won't work:
In the MyControl_AfterUpdate event of a control on a form
I want to evaluate criteria and if it's not met, then send
the user a message and dump them back into that same
control.
Code is simle:
If Not bolClosed Then
MsgBox "Please close the attached file.", _
vbOKOnly, "Attachment Error"
Me!MyControl.SetFocus
End If
Yet, the focus is not set back to 'MyControl' when this
finishes.
Any ideas on why?
Thanks!
someone to either tell me to get a grip or explain why
this won't work:
In the MyControl_AfterUpdate event of a control on a form
I want to evaluate criteria and if it's not met, then send
the user a message and dump them back into that same
control.
Code is simle:
If Not bolClosed Then
MsgBox "Please close the attached file.", _
vbOKOnly, "Attachment Error"
Me!MyControl.SetFocus
End If
Yet, the focus is not set back to 'MyControl' when this
finishes.
Any ideas on why?
Thanks!