Clear Single field?

rodvaN

Registered User.
Local time
Today, 13:32
Joined
May 20, 2009
Messages
92
Whats the command to clear current field when adding AfterUpdate() and BeforeUpdate() ?
Im using something like this but not working.

Code:
Private Sub Data1_AfterUpdate()
If Data1 = LCase(Data1) Then
    MsgBox "You have to use CAPS"
    Me.Field = Null
    Me.SetFocus
    Else
    Resume
End If
    
End Sub
 
Ok..
I figured it out
It was simple
Code:
Field = Null

This may work for newbies like me out there googleing.
 
Actually you should check in the BEFORE UPDATE event instead of the AFTER UPDATE event because then you can just cancel the update.
 

Users who are viewing this thread

Back
Top Bottom