>I have a textbox where a pricecode can be entered, or a commandbutton can be used to bring up a form for pricecode selection.
>
>When I am in textbox and press the button, I do not want to run the validation routine for the textbox.
>
>I know I can detect if the mouse is over the button and return .T., but if you just happen to be sitting over the button, a bad code could be keyed.
>
>Any guidance would be appreciated.
Did you consider using combobox instead of textbox + form?
--sb--