C
Cox Newsgroups
Is it possible to programatically open a form from another form, then have
the code wait until the 2nd form closed, passing back a value.
Example:
I have a form with a listbox of clients.
Normally, a user will click a clients name in the listbox,
then choose a command button to log a client event, which would open the
client event form.
However, if the user tries to log an event without first choosing a
client, they are warned that they need to choose a client first.. or would
they like to add a new client.
If they click YES, to add a client, I want to open a customer form, allowing
the new entry. Upon saving the new customer, I would like customer form to
close, opening the log event form with the new customer ID attached.
In order for this to happen, I need the addCustomer form to pass the new
customersID to one of the forms, preferrably to the customerlist form with
the listbox of names. I sat this because my customer event form is based on
the value of the listbox in that form.
Does this make sense to you gurus?
the code wait until the 2nd form closed, passing back a value.
Example:
I have a form with a listbox of clients.
Normally, a user will click a clients name in the listbox,
then choose a command button to log a client event, which would open the
client event form.
However, if the user tries to log an event without first choosing a
client, they are warned that they need to choose a client first.. or would
they like to add a new client.
If they click YES, to add a client, I want to open a customer form, allowing
the new entry. Upon saving the new customer, I would like customer form to
close, opening the log event form with the new customer ID attached.
In order for this to happen, I need the addCustomer form to pass the new
customersID to one of the forms, preferrably to the customerlist form with
the listbox of names. I sat this because my customer event form is based on
the value of the listbox in that form.
Does this make sense to you gurus?