Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box
Message
 
À
14/10/1999 11:29:05
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:
00276363
Message ID:
00276371
Vues:
24
>I have several tables in my database. I want to take three of the tables which have a field called giver. I want to compile a distinctive list of names from these tables using this field and use this list to populate my combo box. Please help.

Off the top of my head...
SELECT giver from TableA ;
UNION ;
SELECT giver from TableB ;
UNION ;
SELECT giver from TableC ;
INTO CURSOR cGiverAll

SELECT giver ;
  FROM cGiverAll ;
  GROUP by giver ;
  ORDER by giver ;
  INTO CURSOR cGivers
Then load this into your combo.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform