Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One To Too Many
Message
De
09/04/1997 15:10:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00027378
Message ID:
00027647
Vues:
34
>>I am constantly having the following problem: I create a one-to-many form (without using the wizard). Everything sets up and works beautifully. Then, as I continue to de-bug the form, my grid suddenly begins showing ALL records in the child table rather than just the ones that belong to the selected parent.
>>
>>EXAMPLE: I have a RENT table and a RENTEQUI (rent equipment) table. The following properties are set in the grid:
>>
>>LinkMaster Rental
>>RecordSource RentEqui
>>RecordSourceType Alias
>>RelationalExpr RentNo
>>
>>I select a customer. The DE relationship moves the Rental table to the proper record: the first rental on file for the selected customer. The grid of equipment that belongs to this rental starts at the correct record, i.e., the first equip. for the target rental. However, I can scroll up and down through the entire table. Why? How do I fix it?
>>
>>TIA.
>>
>>John
>
>Hi John,
>Force the relationship manually in the load event of your form
>with:
> SELECT rentequi
> SET ORDER TO rentno
> SELECT rent
> SET RELATION TO rentno INTO rentequi
>
>Hope this help.

Luis:

I tried what you said--worked like a charm! Thanks for the assist--I really appreciate it.

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

Click here to load this message in the networking platform