Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting relationships

Status
Not open for further replies.

Howard2002

Programmer
Aug 2, 2002
12
US
How do i set the relationships between two files? I know how to create a key field in each table. What I need to know is how do i call fields from the child to display in a list box. example:
parent-tbl
ssn,agn,unit (key fields),name,yrs_serv
child_tbl_1
ssn,agn,unit(key fields),hire_dat,wages,dept_code
child_tbl_2
ssn,agn,unit(key fields),hire_dat,wages,dept_code
child_tbl_3
ssn,agn,unit(key fields),hire_dat,wages,dept_code

My question is how do i call into a list box the fileds form the children?
I hope some one can help me. Oh by the way I am in VFP7
 
You'd normally create a "parameterized" SELECT for your ListBox RowSource (the parameters being the required key{s}), and then Requery() it whenever you change the Parent record.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top