G
Guest
I am using Microsoft Access 2002, and have various forms that incorporate a
search button; each of these forms will open the same search form
(frmDonorLookup).
The frmDonorLookup form has fields that the user will type parameters into,
the form also has a search button, and a listbox. When the user types in the
search parameters and clicks the search button, the listbox (which is based
on a query using the fields as parameters) will requery with the appropriate
search results.
What I would like to do is have the user click a select button (btnSelect)
to pass the selected listbox value into the original form that opened the
search box, regardless of which of the various forms has opened the listbox.
I have been able to determine the original form by using Screen.ActiveForm,
but I can't seem to pass the value from the frmSearchForm back into the
original form.
Any assistance would be appreciated.
Thanks,
Leo Saumure
search button; each of these forms will open the same search form
(frmDonorLookup).
The frmDonorLookup form has fields that the user will type parameters into,
the form also has a search button, and a listbox. When the user types in the
search parameters and clicks the search button, the listbox (which is based
on a query using the fields as parameters) will requery with the appropriate
search results.
What I would like to do is have the user click a select button (btnSelect)
to pass the selected listbox value into the original form that opened the
search box, regardless of which of the various forms has opened the listbox.
I have been able to determine the original form by using Screen.ActiveForm,
but I can't seem to pass the value from the frmSearchForm back into the
original form.
Any assistance would be appreciated.
Thanks,
Leo Saumure