Tab question

illy2k

Registered User.
Local time
Today, 02:30
Joined
Apr 21, 2003
Messages
51
Can you stop a tab key stroke? In vb have an on exit vb sub that stops you from tabbing out of that field if a certain condition is not met, for example:

If IsNull(Me!AnyField) Then
stop tab
End If

was just curious
 
Richard,

You need to use the BeforeUpdate and/or the BeforeInsert
events of the form to:

Code:
If IsNull(Me.AnyField) Then
   Msgbox("You must make an entry here.")
End If

Wayne
 
lol

Richard Feynman was a theoretical physicist. That isn't me, at least not yet.

:)
 

Users who are viewing this thread

Back
Top Bottom