R
RobUCSD
Sorry for the repost, but I'm getting desperate here. Pls help if you can.
My subform is not loading the correct data when I load patient data form a
search screen. When I initially open my main form by way of the search form
(switchboard>searchScreen>Main form with sub form) the correct data loads.
But on subsequent searches from the main form, the sub form still has the
prior patients data in it. My main and sub are related by the fldPINo in the
parent form and fldPINo in the sub form (the tables as well). Everything is
the way it is supposed to be (I believe.) So it make absolutetly no sense for
this to be happening. I have ME.Refresh in the fsub's OnCurrent event. I try
to requery the fsub's record source thru the main forms OnCurrent event using
Me.frmVisitNewEdit.Requery I'm absolutely baffled. On the sub form I have a
lstbox that displays all the visits of the loaded patient and it displays the
correct data, when I click on a record in the lst the corresponding data
loads into the sub form (because I have Me.Requery in the click event of the
lst.) So this makes me think I need to requery my sub forms data source. But
when a new patient is loaded into my main form, shouldn't the linked subform
also be loaded with that patients data?
This totally wierd. Any help would be greatly appreciated. Thanks, Rob
My subform is not loading the correct data when I load patient data form a
search screen. When I initially open my main form by way of the search form
(switchboard>searchScreen>Main form with sub form) the correct data loads.
But on subsequent searches from the main form, the sub form still has the
prior patients data in it. My main and sub are related by the fldPINo in the
parent form and fldPINo in the sub form (the tables as well). Everything is
the way it is supposed to be (I believe.) So it make absolutetly no sense for
this to be happening. I have ME.Refresh in the fsub's OnCurrent event. I try
to requery the fsub's record source thru the main forms OnCurrent event using
Me.frmVisitNewEdit.Requery I'm absolutely baffled. On the sub form I have a
lstbox that displays all the visits of the loaded patient and it displays the
correct data, when I click on a record in the lst the corresponding data
loads into the sub form (because I have Me.Requery in the click event of the
lst.) So this makes me think I need to requery my sub forms data source. But
when a new patient is loaded into my main form, shouldn't the linked subform
also be loaded with that patients data?
This totally wierd. Any help would be greatly appreciated. Thanks, Rob