Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with grid and relation
Message
De
17/08/2011 03:32:03
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01521104
Message ID:
01521160
Vues:
62
>Hi everybody,
>
>In my form I have a combobox and bellow a grid in which I try to show related table's descrip. Now, when I add a new record, the new description is not shown.
>
>Here is a code I try in the combo's InteractiveChange event
>
>thisform.cntButtons.cmdAdd.Enabled = .t.
>SELECT SCSGLink
>SET RELATION TO
>SET RELATION TO group_no INTO csrGroups
>
>Should I try to switch to using iif(seek(...), ...,...) expression as the column's source for the grid instead of current RelatedTable.Descrip ?
>
>Thanks in advance.

try ( if you can do )
* with static condition
SET KEY TO SCSGLink.group_no IN csrGroups
* with dynamic condition
SET FILTER ...=SCSGLink.group_no IN csrGroups
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform