>so would it go something like this?
>
>if inlist(.......)
> return
>else
> messagebox(.......)
> validate = .T.
>endif
Something like this:
if not inlist(...)
MessageBox(...)
return .F.
endif
Personally, however, I prefer the form design where the user can jump between different TextBoxes, and all rules for the record are validated when the user tries to save. This is easier to program, and can save the user some trouble, too.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)