B
Bellyjeans
Hi everybody,
I have an unbound combo box (cboSearchByLastName) on a form that
searches for specific records based on last name. It's searching just
fine, but I'd like to refine it a bit.
What I'd like it to do is if the record is not in the list, a message
box pops up with a yes and a no button that says, "Person not found.
Add this person as a new record?". If the user clicks "Yes", a new
record would be created and the information that the user entered into
the unbound combo box to search would automatically be entered into
the bound textbox "txtLastName" on the form. The unbound combo box
would then be cleared of its entry.
If the user clicks "No" on the message box, the unbound combo box
would be cleared of its entry.
Any help that you guys could provide would be of great assistance.
Thanks!
I have an unbound combo box (cboSearchByLastName) on a form that
searches for specific records based on last name. It's searching just
fine, but I'd like to refine it a bit.
What I'd like it to do is if the record is not in the list, a message
box pops up with a yes and a no button that says, "Person not found.
Add this person as a new record?". If the user clicks "Yes", a new
record would be created and the information that the user entered into
the unbound combo box to search would automatically be entered into
the bound textbox "txtLastName" on the form. The unbound combo box
would then be cleared of its entry.
If the user clicks "No" on the message box, the unbound combo box
would be cleared of its entry.
Any help that you guys could provide would be of great assistance.
Thanks!