stanmurphy
Technical User
- Oct 14, 2000
- 89
Hello,
I'm working in VFP 7.0 SP1.
I have two tables, APPOINTMENTS and COUNSELLORS.
The APPOINTMENTS table has a field - CounID - that corresponds to the CounID key field in COUNSELLORS.
How would I build a Select statement that would take two fields from APPOINTMENTS and the contents of the Counsellor_name field in COUNSELLORS and put the three fields into a cursor.
For instance:
APPOINTMENTS has a record with client name, appointment date and counsellor number: John Smith, 02/21/2002, 2
I want to take John Smith, 02/21/2002 and the name that corresponds to CounID=2 in the COUNSELLOR file and put the three fields into a cursor. I have created a persistant relationship between the APPOINTMENTS table and the COUNSELLOR table based on CounID.
Any insight would be appreciated.
Stan
I'm working in VFP 7.0 SP1.
I have two tables, APPOINTMENTS and COUNSELLORS.
The APPOINTMENTS table has a field - CounID - that corresponds to the CounID key field in COUNSELLORS.
How would I build a Select statement that would take two fields from APPOINTMENTS and the contents of the Counsellor_name field in COUNSELLORS and put the three fields into a cursor.
For instance:
APPOINTMENTS has a record with client name, appointment date and counsellor number: John Smith, 02/21/2002, 2
I want to take John Smith, 02/21/2002 and the name that corresponds to CounID=2 in the COUNSELLOR file and put the three fields into a cursor. I have created a persistant relationship between the APPOINTMENTS table and the COUNSELLOR table based on CounID.
Any insight would be appreciated.
Stan