Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display product descr instead of product id on form
Message
De
07/04/2003 15:25:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
07/04/2003 15:02:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00774841
Message ID:
00774869
Vues:
17
>I have 2 tables: ordertable (stores product id), & producttable (to lookup product id for product name). I have a text field on a form that should display product name instead of product id.
>
>Sample record from ordertable:
>orderNo: 90119 productid1: 392 productid2: 574 date: 04/04/03
>
>Sample record from producttable:
>Productid: 392 Descr: 17” monitor
>Productid: 574 Descr: 13” monitor
>
>
>I’d like my text field to display 17” monitor & 13” monitor instead of 392 & 574 (& there are 10 different products to be displayed in the form). Ho do I do this? Thanks all!

Inge,
Use a combobox. ie:

.Rowsourcetype = 3
.Rowsource = 'select Descr,productid from products into cursor crsProducts'
.Columncount = 2
.BoundColumn=2
.Columnwidths = '100,0'
.Controlsource='YourTable.ProductID'

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform