Hi,
Can anyone help me with this one please? I have looked through previous threads and MS Help but I am missing something. I am new to Visual FoxPro so bear with me please.
I have a form that displays details from cont_det(parent). A grid displays budget details from bud_ob (child). This is set up using properties RecordSource,LinkMaster,ChildOrder, etc and works fine.
bud_ob has a lookup table fd_list:
fd_list.fund_idno = bud_ob.fund_idno
I am trying to display Fd_list.value in a column on the grid, using bud_ob.fund_idno to get a value from fd_list. Fd_list.value is correct in the first row but the other rows contain the same value - not their own values from fd_list. I have checked and fund_idno is correct for each row but it is as if it is not being used properly to populate each row with fd_list.value.
I have tried SET RELATION in the init of both the column and the grid to join bud_ob and fd_list.
I have tried using a SELECT
But no luck. How do I get the column to display values from a lookup properly?
Thank You
Mary
Can anyone help me with this one please? I have looked through previous threads and MS Help but I am missing something. I am new to Visual FoxPro so bear with me please.
I have a form that displays details from cont_det(parent). A grid displays budget details from bud_ob (child). This is set up using properties RecordSource,LinkMaster,ChildOrder, etc and works fine.
bud_ob has a lookup table fd_list:
fd_list.fund_idno = bud_ob.fund_idno
I am trying to display Fd_list.value in a column on the grid, using bud_ob.fund_idno to get a value from fd_list. Fd_list.value is correct in the first row but the other rows contain the same value - not their own values from fd_list. I have checked and fund_idno is correct for each row but it is as if it is not being used properly to populate each row with fd_list.value.
I have tried SET RELATION in the init of both the column and the grid to join bud_ob and fd_list.
I have tried using a SELECT
Code:
SELECT fd_list
LOCATE for fund_idno = bud_ob.fund_idno
But no luck. How do I get the column to display values from a lookup properly?
Thank You
Mary