Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box list order?
Message
De
26/10/1999 13:47:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00276040
Message ID:
00281629
Vues:
19
Hi Neil.


>> When reviewing the order, the description field must be displayed from the products table based on the productid stored in the orderitems table. <<

Forgive me if I seem dense, but I still fail to see what the problem is when using a RowSOurceType of 3-SQL Statement. If your select from the products table contains the PK for the product (I am assuming that the productid is the PK)in, say column #2, you just make column 2 the combo's BoundColumn. If it is a numeric value, you set the combo's BoundTo property = .T. The you set the combo's ControlSource to OrderItems.ProductID.

As long as the product description is the first field in your select, it will be displayed in the text portion of the combo as well as column 1. If you do not want the productID visible, just set columnCount = 2 and ColumnWidths = something like 150,0 .

Or am I missing something fundamental here?

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

Click here to load this message in the networking platform