G
Guest
I want to use this in my Not in List Event of a combo box that is on a Edit
form, so that if a user attempts to enter a product that is not on the list,
they will be warned that it is not a product currently in the database and
then will be asked if they want to add it. I don't however, want them to
just be able to add items to the list. If they select "Yes" they want to add
product to the database, then I want to open a new form in Add New mode in
order to prompt them to enter all the specific details about the product
instead of just adding a name to a list. I've done this in the past by
actually having two identical forms with different names. One set to "Edit"
mode, and another set to "Add" mode. When on the edit form, the not in list
event would prompt a user to add a new item, and would then open the "ADD
New" form for data entry.
This time I was trying to get by with just using the same form and opening
it with the different arguments, which works fine when opening them directly
from command buttons, but how can I do this for the not in list event. I
can't "Open" the form I'm already on in a different mode can I ???. Does
anyone have any ideas how to do something like this?
Any help greatly appreciated,
thanks
form, so that if a user attempts to enter a product that is not on the list,
they will be warned that it is not a product currently in the database and
then will be asked if they want to add it. I don't however, want them to
just be able to add items to the list. If they select "Yes" they want to add
product to the database, then I want to open a new form in Add New mode in
order to prompt them to enter all the specific details about the product
instead of just adding a name to a list. I've done this in the past by
actually having two identical forms with different names. One set to "Edit"
mode, and another set to "Add" mode. When on the edit form, the not in list
event would prompt a user to add a new item, and would then open the "ADD
New" form for data entry.
This time I was trying to get by with just using the same form and opening
it with the different arguments, which works fine when opening them directly
from command buttons, but how can I do this for the not in list event. I
can't "Open" the form I'm already on in a different mode can I ???. Does
anyone have any ideas how to do something like this?
Any help greatly appreciated,
thanks