C
Corey-g via AccessMonster.com
Hi All,
I have a combo box that lists names, and when the not in list event is fired,
I open a form to add all of the required data for that entry. The problem is
that I'm not sure how to handle a user 'cancelling' (or closing) the form
without adding the new data. Originally I didn't have any thoughts about
this, but I realized when I tried to cancel/close without adding the new
entry that it breaks the process. So now I'm trying to figure out the best
way to build this functionality... I thought about using a variable on the
calling form (boolAddedNew) and having this updated from the other form, but
as I debugged it, I got an error that the variable was not defined.
Can I have a variable set from docmd? (boolAddedNew = docmd.open acForm,
"myForm")
Any thoughts would be appreciated,
Corey
I have a combo box that lists names, and when the not in list event is fired,
I open a form to add all of the required data for that entry. The problem is
that I'm not sure how to handle a user 'cancelling' (or closing) the form
without adding the new data. Originally I didn't have any thoughts about
this, but I realized when I tried to cancel/close without adding the new
entry that it breaks the process. So now I'm trying to figure out the best
way to build this functionality... I thought about using a variable on the
calling form (boolAddedNew) and having this updated from the other form, but
as I debugged it, I got an error that the variable was not defined.
Can I have a variable set from docmd? (boolAddedNew = docmd.open acForm,
"myForm")
Any thoughts would be appreciated,
Corey