LarryDeLaruelle
Technical User
I have created a combo box, cboAgency, on my frmContacts as follows:
Used first wizard option ". . . look up values in a table or query" and based it on my tblAgency
cboAgency has two columns:
Column 1 is AgencyID bound to frmContacts.AgencyID
Column 2 is AgencyName
Column widths are 0";1.0"
Limit to list is set to Yes; can't change it to No because "the first visible column width isn't equal to the bound column".
On the "On Not in List" event I set warnings to false and issue a prompt to the user: "This Agency is not in the Database do you wish to add it?" If the user responds OK I set the cboAgency value to null and then open the Add Agency form for data entry. If the user responds Cancel, I set the cboAgency value to null and set focus to cboAgency.
In either case, I get the message: "The text you entered isn't in the list. My question is how do I supress this message?
Or, is there a better way to handle the On Not In List process?
Larry De Laruelle
larry1de@yahoo.com
Used first wizard option ". . . look up values in a table or query" and based it on my tblAgency
cboAgency has two columns:
Column 1 is AgencyID bound to frmContacts.AgencyID
Column 2 is AgencyName
Column widths are 0";1.0"
Limit to list is set to Yes; can't change it to No because "the first visible column width isn't equal to the bound column".
On the "On Not in List" event I set warnings to false and issue a prompt to the user: "This Agency is not in the Database do you wish to add it?" If the user responds OK I set the cboAgency value to null and then open the Add Agency form for data entry. If the user responds Cancel, I set the cboAgency value to null and set focus to cboAgency.
In either case, I get the message: "The text you entered isn't in the list. My question is how do I supress this message?
Or, is there a better way to handle the On Not In List process?
Larry De Laruelle
larry1de@yahoo.com