I have a grid that has a column controlled by a date field. There is a valid event that triggers if the user enters an undesired date. My problem is that if the user enters 00 or any invalid date, i.e. 02-31-2007, the vfp takes control and would not loose the focus, neither it will trigger the valid event. However, if the user presses the 'Save' button on the form, any code that is in the save button is executed first and then the valid event of the date field triggers.
My question is that is there a way to check that the VFP is controlling the field with the invalid input. If I can determine this, then I can stop running the code from 'Save' button and return the focus back to the field. I would highly appreciate a quick reply and thanks in advance.
My question is that is there a way to check that the VFP is controlling the field with the invalid input. If I can determine this, then I can stop running the code from 'Save' button and return the focus back to the field. I would highly appreciate a quick reply and thanks in advance.