>>The Error event is not fired for invalid dates.
>>
>>Vlad
>>
>>>Try using the Error Event for the textbox. You could find out what the error number is for the message you want to intercept and put your own message in there. Use the MessageBox() function for your own message in the centre of the screen.
>
>
>Use the ON READERROR command with SET NOTIFY ON
>
>Ex.
>
>** Global setup
>SET NOTIFY ON
>ON READERROR MESSAGEBOX ("Le format de la date est invalide")
>***
>
>..
>
>DO FORM ...
That is a beautiful idea! Tres bien, Michel!
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05