J
Joe Holzhauer
I've run into this problem several times, and it's fairly easy to work
around, but it seems like there's a better way. I even asked the question
in this forum but I don't think I was clear about what I was asking.
Basically, is there a better way for a popup form to return a value to the
calling form than referring to a text box on the calling form? For example:
I've written a form that asks a user to enter a client ID. Most of the
time, they have the client ID available and can just type it in...
sometimes, though, the user needs to be able to search for the client (by
name, partial ID, or some combination of other traits).
My solution is to allow the user to click a search button, which brings up a
query-by-form interface. The user can then enter the search criteria and
select the appropriate client. This is all fine, but now here's the
question:
What I've always done in the past is stored the client ID for the client
they selected in a text box on the main form. i.e.:
Forms![frmMainForm].txtClientID = lstClientID
This seems awkward to me. You have to check that the main form is open
before you can return it, and then what happens if you want to use your
popup from a different form also?
So, is there a way to have the popup form "return" a value to whatever form
called it? i.e.:
txtClientID = frmPopup
(I know that won't work, but it's what I want to emulate.)
Sorry for going on and on...
Thanks in advance!
Joe
around, but it seems like there's a better way. I even asked the question
in this forum but I don't think I was clear about what I was asking.
Basically, is there a better way for a popup form to return a value to the
calling form than referring to a text box on the calling form? For example:
I've written a form that asks a user to enter a client ID. Most of the
time, they have the client ID available and can just type it in...
sometimes, though, the user needs to be able to search for the client (by
name, partial ID, or some combination of other traits).
My solution is to allow the user to click a search button, which brings up a
query-by-form interface. The user can then enter the search criteria and
select the appropriate client. This is all fine, but now here's the
question:
What I've always done in the past is stored the client ID for the client
they selected in a text box on the main form. i.e.:
Forms![frmMainForm].txtClientID = lstClientID
This seems awkward to me. You have to check that the main form is open
before you can return it, and then what happens if you want to use your
popup from a different form also?
So, is there a way to have the popup form "return" a value to whatever form
called it? i.e.:
txtClientID = frmPopup
(I know that won't work, but it's what I want to emulate.)
Sorry for going on and on...
Thanks in advance!
Joe