I have this in the valid event...
IIF(date() - TTOD(this.value) > 7, Messagebox("INVALID DATE: Date Recieved cannot be more than 7 days prior to today.", 0, "Error", this.value)
Then, I wanted the focus to stay on that field because I want the user to be forced to enter a valid value. When I put in .setfocus, I got an error saying you can't use that within a valid event. Can I do anything from that event to make the focus stay there?
IIF(date() - TTOD(this.value) > 7, Messagebox("INVALID DATE: Date Recieved cannot be more than 7 days prior to today.", 0, "Error", this.value)
Then, I wanted the focus to stay on that field because I want the user to be forced to enter a valid value. When I put in .setfocus, I got an error saying you can't use that within a valid event. Can I do anything from that event to make the focus stay there?