R
RobUCSD
Is there a way to run a query only once in the onCurrent event. When I load a
new patient up the prior pt's data is still there until I click on a lstBox
where I have that patients visit history by date and visit type. Everytime I
load a new pt to my main form(frmPtDemographics) I need the sub
form(frmVisit) to requery the underling query that populates the patient data
in the sub form and the lstBox on the form. If I put me.requery in the
onCurrent event it just loops. It works correctly on the initial load of the
form. But when I select a new pt through a search form the data sometimes
loads correctly and sometimes not.
So I thought if I requery it would load the correct pt data to the form.
Me.refresh in the current event does not do it.
Any help would be greatly appreciated. Thanks, Rob
new patient up the prior pt's data is still there until I click on a lstBox
where I have that patients visit history by date and visit type. Everytime I
load a new pt to my main form(frmPtDemographics) I need the sub
form(frmVisit) to requery the underling query that populates the patient data
in the sub form and the lstBox on the form. If I put me.requery in the
onCurrent event it just loops. It works correctly on the initial load of the
form. But when I select a new pt through a search form the data sometimes
loads correctly and sometimes not.
So I thought if I requery it would load the correct pt data to the form.
Me.refresh in the current event does not do it.
Any help would be greatly appreciated. Thanks, Rob