I've got two tables that are in relation (one-to-many).
First, doctors (master) and schedule (child).
In a form, I have a combo box where I select a doctor(from table doctors) and a grid where is diplayed the corresponding schedule of the doctor selected in combo box ( from schedule).
Of course, in the form I've got other controls but these are not important in this case.
First time when I've created this form the results in the grid were correctly displayed, but after some developments of the form I observed that the results in the grid are not what it should be. More precisely, in the first row of the grid is displayed the correct data and in the next rows, the data corresponding to the next doctors of the doctor selected in the combo box.
First, doctors (master) and schedule (child).
In a form, I have a combo box where I select a doctor(from table doctors) and a grid where is diplayed the corresponding schedule of the doctor selected in combo box ( from schedule).
Of course, in the form I've got other controls but these are not important in this case.
First time when I've created this form the results in the grid were correctly displayed, but after some developments of the form I observed that the results in the grid are not what it should be. More precisely, in the first row of the grid is displayed the correct data and in the next rows, the data corresponding to the next doctors of the doctor selected in the combo box.