Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to show data from 2 tables?
Message
De
10/01/2000 03:53:19
 
 
À
07/01/2000 15:04:49
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00314678
Message ID:
00315362
Vues:
34
Hi Steven.

>> I have two tables with a common field. It is called an edr index number. The first table shows the edr index and common info in other fields. The second table lists the edr index number as many times as it has been summitted for approval with particular dates associated with the particular submittal instance. I need one form to show both the main info and list the submittal info. I want the edr index to be the driver for the form. Please Help. <<

You can create a parameterized view for the child table. This view is simple enough that it can be created in the view designer. Just use the common field to relate the two tables and under the filter tab enter the field in the parent table and specify that it should = ?vp_edr_index_number.

Use the paramterized view as the RecordSource for the grid that displays records from the child table. Specify NoDataOnLoad = .T. for the parameterized view in the DE.

If you are displaying the parent table in a grid, just set

vp_edr_index_number = Table.Field
REQUERY( '' )

in the parent grid's AfterRowColChange.

If the parent is being displayed in a combo box, put this code in the combo's Valid.

Marcia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform