Marissa,
The short answer to your question is this: When you are searching or selecting from a large table, the choice of which command to use does not make a substantial difference. What really matters is whether an index exists on the field being selected, and whether VFP can take advantage of that index.
You say you tried using BETWEEN in a WHERE clause, but you didn't say if it was the VFP BETWEEN
function or the SQL between
operator. This is important because VFP can optimise the latter but not the former.
For example, suppose this is your WHERE clause:
... WHERE Cust_ID BETWEEN 1 and 20
If there is an index on Cust_ID, that query will be fully optimised and will therfore be fast. However, this one won't be optimised:
... WHERE BETWEEN(Cust_ID, 1, 20)
This is true regardless of which command you use. It is the optimisation that it important, not the command.
That said, SELECT is usually a better choice when you need to get more than one record at a time. SEEK only finds the first record that meets the condition. LOCATE and CONTINUE can find multiple records, but require you to write more code to achieve it.
Mike
Mike Lewis
Edinburgh, Scotland
My Visual Foxpro web site:
My Crystal Reports web site: