Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Too slow
Message
From
30/11/1999 15:29:13
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
 
To
30/11/1999 13:34:19
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00297016
Message ID:
00297091
Views:
19
>I have a table with 40,000+ records in it. On my form I type in a number which
>cooresponds to a drawing number field in my table. I use "Scan For Like
>maindatatable.dmdrno, This.Value)".

You could convert the entry from text into an integer (or float) then SEEK the value indexed on a numeric field. (If the drawing numbers have characters in them 850a, 850.1c, etc., then you'd have to go with the padded character string)

In either case, there is no reason to use a scan..endscan if you're looking for only one record. (assumeing each drawing number is unique) Use SEEK directly on an indexed database.
Previous
Reply
Map
View

Click here to load this message in the networking platform