Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to display subsets of data
Message
De
25/07/2001 06:06:55
Jill Derickson
Software Specialties
Saipan, CNMI
 
 
À
25/07/2001 02:44:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00534821
Message ID:
00534858
Vues:
11
Al,

Thanks for your input.

>Are you simply displaying data (i.e. not updating?) If so I'd be inclined to use straight SELECT - SQLs. You could use a combo or radio buttons for your main choices (All, Complete, Incomplete). You can also do neat stuff like put code in your grid header .Click() so the grid resorts based on that column - lets the user view by name, application amount, date, etc. You simply supply the correct ORDER BY clause.
>
>You need to remove the grid's RecordSource before regenerating the cursor, then restore it and the columns' ControlSources each time.

Thanks...you must be reading my mind...I DO have radio buttons at the top of the form, and I DO use a grid where the user can click in the header to sort the data by various fields...but I usually use a view, creating the indexes on the view once, in the form LOAD.

And, yes, in this case, I'm not updating the view...

If using straight SELECT - SQLs, as you mentioned, I'd have to re-execute the SQL everytime the user wanted to sort on a different column? better to make a writable cursor and create all the tags once?

J
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform