Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Too slow
Message
 
À
30/11/1999 13:34:19
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00297016
Message ID:
00297108
Vues:
31
>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)". This doesn't take too long on my 450mhZ CPU machine but on slower machines (100mhZ CPU) it takes several seconds. What can I do to improve this. Thanks for your help.
>
>God Bless,
>S. Dyke

Why not have a view that returns all hits to a grid so the user can decide which one they really want?

create sql view 'lv_drawing_list' as;
select field_list ;
from maindtattable ;
where dmdrno like ?vp_drawing

You can change the like with = if you like.

vp_drawing is the control source of the form.

Then a requery() is all that is needed in the code that fires to fetch data.

__Stephen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform