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!

Form not displaying data

Status
Not open for further replies.

Howard2002

Programmer
Aug 2, 2002
12
US
I am in VFP7 and created a form with ssn as my input field and my key field. Set the (name) field control source to mastet_table.name. Have another field (agency) that is from table second_table that has the key field of ssn. The control source in the agency field is second_table.agency.
How do i get the form to display them when you select the 'find' button after entering the ssn?
 
HI Howard,
1. If the ssn field names are same and if you are using the Data environment to open the tables, then, simply drag the SSN field from "mastet_table" into the index area of second_table. And that is done !

Otherwise and another way is
2. In the forms Init event, add the code...

SELECT mastet_table
SET RELATION TO ssnField INTO second_table
LOCATE

This will take care of your requirements.
:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top