Hi all
I have a modal form class which get the From-To dates from the user. I have put logic in the VALID() (also tried LOSTFOCUS()) that checks of the To date is not more than 50 days from the From date. In such a case I raise a MESSAGEBOX() stating the To date has been reset to max +50 days to please recheck the dates, then I do a THIS.SETFOCUS()
Now when the MSGBOX is activated and if I press Enter to okay the MSGBOX, then Enter is passed onto my modal form and the default button Ok is also pressed. I have tried to use CLEAR TYPEAHEAD after the MSGBOX but no luck.
Please advise on what is happening.