Deleting text in Before update action

  • Thread starter Thread starter Roy Goldhammer
  • Start date Start date
R

Roy Goldhammer

Hello there

I have function for checking the valid of the date (for example 31/06/04 is
not valid date)

I call this function on any textbox with date on before update event.

If the user entered an invalid date i would like to delete what he entered
and that's it

But on the before Update event i can't delete what the user entered

Is there a way to do this?

any help would be useful
 
Roy Goldhammer said:
Hello there

I have function for checking the valid of the date (for example 31/06/04 is
not valid date)

I call this function on any textbox with date on before update event.

If the user entered an invalid date i would like to delete what he entered
and that's it

But on the before Update event i can't delete what the user entered

Is there a way to do this?

any help would be useful


Cancel = True
Me.TextBoxName.Undo
 
Back
Top