Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with grid and relation
Message
From
17/08/2011 03:32:03
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01521104
Message ID:
01521160
Views:
63
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform