Hi Robin.
You can limit the actions of your users by putting the following code in the KeyPress event of the textbox.
if not inlist(upper(nKeyCode),'S','F')
NoDefault
wait 'Polite message' window
Endif
HTH
Kamil
>Want to put some validation in my grid:
>
>1) Want my column to be either S or F. Don't want to use a combo box cause this means click on the dropdown porton of it.
>
>So I put some code in the valid event of my text box in the column, to check if this.value$"FS ", if its not I want a suitable message to appear, seems to get stuck when the validation fails?
>
>Can't remember how to cause a message to be returned
>
>Thanks in advance
A moment of silence is our cosmic reset button.