Hi,
I have a form, used in a medical database, which contains the lookup field DOCTOR, which updates depending on the contents of a table called DOCTORINFO.
Next to this field I have a command button which, when pressed, opens the DOCTORINFO form, allowing the user to enter the name details of a new DOCTOR (the original form is still open in the background).
Once this information has been completed a command button on the DOCTORINFO form is pressed, which through the use of DoCmd.Save and DoCmd.Close statements saves the new doctor information and closes the form, returning the user to the original form.
When I go to select the doctors name from the DOCTOR lookup field on the original form, the data I have just entered is not present. However, if I close the form and then open it, the data is now present in the list.
How do I get the lookup list to update without having to close and reopen the original form?
If anyone can help that would be great.
Best regards
Russell
Usr33t
I have a form, used in a medical database, which contains the lookup field DOCTOR, which updates depending on the contents of a table called DOCTORINFO.
Next to this field I have a command button which, when pressed, opens the DOCTORINFO form, allowing the user to enter the name details of a new DOCTOR (the original form is still open in the background).
Once this information has been completed a command button on the DOCTORINFO form is pressed, which through the use of DoCmd.Save and DoCmd.Close statements saves the new doctor information and closes the form, returning the user to the original form.
When I go to select the doctors name from the DOCTOR lookup field on the original form, the data I have just entered is not present. However, if I close the form and then open it, the data is now present in the list.
How do I get the lookup list to update without having to close and reopen the original form?
If anyone can help that would be great.
Best regards
Russell
Usr33t