I have three tables:
Patients - KeyIndex 'Code' - no buffer
Visits - KeyIndex 'Auto_ID' - no buffer
Codes - KeyIndex 'c_Code'
The three tables are combined via 2 views:
1) 'View_Patient_Visits' (Left INNER join)tables 'Patients' & 'Visits' (Buffer = 1)
2) 'View_Patient_Visists_Codes' (Left Inner Join) combining:
'view_Patient_Visits' and Table 'Codes'
My current routine adds a new record via: INSERT SQL, giving a new (higher) Key Value to each the 'Patients' Key fields 'Code'.
I then issue a REQUERY("view_patient_visits_code).
Here is the problem: The view is not updated, unless I leave Foxpro and re-enter.
Any ideas where the problem lies?
Thank you in advance
Rainer
Patients - KeyIndex 'Code' - no buffer
Visits - KeyIndex 'Auto_ID' - no buffer
Codes - KeyIndex 'c_Code'
The three tables are combined via 2 views:
1) 'View_Patient_Visits' (Left INNER join)tables 'Patients' & 'Visits' (Buffer = 1)
2) 'View_Patient_Visists_Codes' (Left Inner Join) combining:
'view_Patient_Visits' and Table 'Codes'
My current routine adds a new record via: INSERT SQL, giving a new (higher) Key Value to each the 'Patients' Key fields 'Code'.
I then issue a REQUERY("view_patient_visits_code).
Here is the problem: The view is not updated, unless I leave Foxpro and re-enter.
Any ideas where the problem lies?
Thank you in advance
Rainer