>I want to display a message "Invalid date" if the user keys in an invalid date into a text box. The only way I've seen to do this is to bind the text box to a date field, but this text box is on a pop-up dialog box which has no tables. I added a dummy table just to get the validation, but there must be a better way.
>
>thank in advance
Larry,
In the textbox's Init put this line;
THIS.Value = { / / }
Or you could assign a default date to it if you want. Making the value of the textbox a date will restrict input into the tetbox to only valid dates.
Alternatively, in the form designer you could go to the properties sheet for that textbox and select the value property and type in { / / } for the value. This accomplishes the same end result as the aboe idea.