Hi Wendz,
set order to idno && you must have an index for this field
loca for idno=thisform.txtidno.value && if numeric you can a
&& val(thisform...)
&& if text,use alltrim
FWIW, the Locate command does a search on the data without the index.
If you have an active index (as in your example above), use the Seek command to utilize the index.
FYI, Seek is significantly faster than locate. [sig]<p>Jon Hawkins<br><a href=mailto: jonscott8@yahoo.com> jonscott8@yahoo.com</a><br><a href= > </a><br>Focus on the solution....Not the problem.[/sig]