I've got a form with two grids. In the first grid I have the data of a table ( 'Schedule' - child ) that is in relation with table 'Doctors' ( master ).
In the second grid I have values of a field from table 'Reserv' which are obtained from a cursor:
This.RecordSource = ''
Select ora_prg from reserv ;
Where ( m_id = doctors.m_id ) AND ( data_prg = lddata ) Into Cursor prgzi
This.RecordSource = 'prgzi'
The above code is placed in Thisform.grid2.Refresh and this method is called in ThisForm.OleData.Change and
ThisForm.cboDoctor.InteractiveChange.
The problem is, that in the first grid data is diplayed incorrectly.
In the second grid I have values of a field from table 'Reserv' which are obtained from a cursor:
This.RecordSource = ''
Select ora_prg from reserv ;
Where ( m_id = doctors.m_id ) AND ( data_prg = lddata ) Into Cursor prgzi
This.RecordSource = 'prgzi'
The above code is placed in Thisform.grid2.Refresh and this method is called in ThisForm.OleData.Change and
ThisForm.cboDoctor.InteractiveChange.
The problem is, that in the first grid data is diplayed incorrectly.