Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ControlSource in Grid based on Calc'd Field
Message
De
15/11/2001 15:38:59
 
 
À
15/11/2001 15:17:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00582336
Message ID:
00582343
Vues:
22
>Does anyone know how to build a field in a grid where there is no underlying field in a table? For example, if you had a Product Code field and wanted to show the product's description in the next column, but the grid's underlying table does not have a description field so the value must come from the product table. Since it is a grid, I will have many different product code/product description visible at once.
>
>Thanks in Advance,
>Sandi

Can you base the grid recordsource to an alias? If so, just do a join of the two tables into a named cursor and assign that to the recordsource of the grid. Something like
Select tbl1.code, tbl2.description From tbl1 join tbl2 on tbl1.code=tbl2.code Into Cursor myCursor
HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform