A
abprules
I am having trouble with this scenario. Can someone please help? It
seems to be basic but I can't quite figure the code completely out!
Here's the scenario.
I have a form called frmSearchNWCInd. On that form, I have a combo box
for a to look up contacts in the DB.
If the contact is found, I want to be transferred to a form called
frmNWCont_Ind_Tabs with the persons record selected.
If the contact is not found, I want to add that contact as a new record
and once it is added, then transfer to the form called
frmNWCont_Ind_Tabs, and I want the frmSearchNWCInd to close.
(Currently, I have a button that allows one to add a new record
(butAddNewRec) but when typing in a name in the search (combo) box, and
it is not found, and then clicking on the Add Record button, the
following error pops up:
"The text you entered is not an item in the list. Select an item from
the list, or enter text that matches one of the listed item." )
Can anyone tell me the code to accomplish this?
seems to be basic but I can't quite figure the code completely out!
Here's the scenario.
I have a form called frmSearchNWCInd. On that form, I have a combo box
for a to look up contacts in the DB.
If the contact is found, I want to be transferred to a form called
frmNWCont_Ind_Tabs with the persons record selected.
If the contact is not found, I want to add that contact as a new record
and once it is added, then transfer to the form called
frmNWCont_Ind_Tabs, and I want the frmSearchNWCInd to close.
(Currently, I have a button that allows one to add a new record
(butAddNewRec) but when typing in a name in the search (combo) box, and
it is not found, and then clicking on the Add Record button, the
following error pops up:
"The text you entered is not an item in the list. Select an item from
the list, or enter text that matches one of the listed item." )
Can anyone tell me the code to accomplish this?