G
Guest
Hello,
I have a form that holds the names of Doctors and their contact information.
This form pulls from a doctor table.
This form is embedded in a doctor visit form, of which I have an 'edit
doctor details' button. This button opens up the form 'doctors' and allows
the user to edit the doctor information.
My challenge is that I am using a requery to update the changes (Code below)
on the Onclose property of the form. I picked this up from this forum with
respect to another challenge I was facing with another form.
Dim MyControl As Control
Set MyControl =
Forms![frmclients][frmdoctorvisit]![tblJunctionDoctorsandClients
Subform]![Name]
MyControl.Requery
As you can see, it only updates the name. Is there a way I can update any
field in the doctors table (address, phone, etc) and have it immediately
requery any changes that have been made on the fly without having to load the
form again? I tried removing [Name] from the statement; no joy.
Thanks in advance,
Rookie.
I have a form that holds the names of Doctors and their contact information.
This form pulls from a doctor table.
This form is embedded in a doctor visit form, of which I have an 'edit
doctor details' button. This button opens up the form 'doctors' and allows
the user to edit the doctor information.
My challenge is that I am using a requery to update the changes (Code below)
on the Onclose property of the form. I picked this up from this forum with
respect to another challenge I was facing with another form.
Dim MyControl As Control
Set MyControl =
Forms![frmclients][frmdoctorvisit]![tblJunctionDoctorsandClients
Subform]![Name]
MyControl.Requery
As you can see, it only updates the name. Is there a way I can update any
field in the doctors table (address, phone, etc) and have it immediately
requery any changes that have been made on the fly without having to load the
form again? I tried removing [Name] from the statement; no joy.
Thanks in advance,
Rookie.