>Hi - not sure if this should be in the Forms category or here!
>
>What is the best way to check user input to make sure it is unique before allowing the user to continue entering into other fields?
Chris,
One way is in the LostFocus of the field, issue an IndexSeek and see if returns .T.. If so, the value already exists and you can issue a NODEFAULT to prevent the control losing focus.
The same premise could be used with a SQL Select. By default neither technique moves the original record pointer so you don't have to worry about row buffering of the data.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao