S
Steve Haack
I have a form, that a user inputs a ProductCode into and then clicks the Find
button. In the code for btnFind_OnClick, I call a seperate function to look
the ProductCode up in a table and see if it exists. This part works fine.
If it does not exist, I retrun a result back that it was not found. I then
ask the user if they want to create a new record for the product.
When they say yes, then I call another function called CreateProduct which
opens a frmProductInfornation form with a new record.
The problem I am having, is that once the new form is opened, the
CreateProduct then returns back to the btnFind_OnClick sub, without waiting
for the user to finish adding all the details in the frmProductInformation
and saving (and closing) the ProductInformation form.
How can I get this CreateProduct function to wait for the form to close
before contuing (and thus returning to the original calling sub)?
Thanks,
Steve
button. In the code for btnFind_OnClick, I call a seperate function to look
the ProductCode up in a table and see if it exists. This part works fine.
If it does not exist, I retrun a result back that it was not found. I then
ask the user if they want to create a new record for the product.
When they say yes, then I call another function called CreateProduct which
opens a frmProductInfornation form with a new record.
The problem I am having, is that once the new form is opened, the
CreateProduct then returns back to the btnFind_OnClick sub, without waiting
for the user to finish adding all the details in the frmProductInformation
and saving (and closing) the ProductInformation form.
How can I get this CreateProduct function to wait for the form to close
before contuing (and thus returning to the original calling sub)?
Thanks,
Steve