Dear Benson,
In general, its good practice to use SQL statements instead of LOCATE or SEEK, especially in client/server applications.
LOCATE and SEEK search through the table row by row (serial search) which can be slow if the computer is not powerful enough or the network is overloaded. So...
try this
select myTable
SELECT * FROM myTable WHERE m.stock_code = myStockCode
or
select myTable
LOCATE FOR m.stock_code = myStockCode
myForm.Refresh
Zed Lands
If I have understood correctly, you are looking for alternative ways to find a record in a table using VFP.
In this case, instead of seek, try LOCATE (for serial search), or use an SQL statement with a WHERE clause for the desired record's record number ( RECNO() )
eg.
SELECT FROM myTable *...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.