news:Oc******************************@posted.plusn et...
You might tryAIUI the SendKeys method is frowned upon because it can send to whatever
Private Sub MyControl_BeforeUpdate(Cancel As Integer)
If Nz(MyControl) = "" Then
MsgBox "Someting required"
Cancel = True
SendKeys "{ESC}"
End If
End Sub
window has the focus, be it your Access application or anything else.
Keith.