I have a Customer Info Form. I use a combo box to go quicky to a particular customer. I want limit_to_list false so that if the customer is not there, I can get a new form and enter new data.
The combo box uses a hidden CustID field (an AutoNum) but displays the CustName. It will not let me set limit_to_list to false because the field used to look up the customer is hidden (width 0).
I tried to use column 2 (the name) as searching field but something worse happens! Here it is:
I have a customer Mom's Place. This crashes the VBA code behind the combo box. In fact, any string which uses an apostrophe causes a problem. I looked at the wizard generated code and it has something like
custName & " ' "
like it's putting in an apostrophe as a delimiter, which must be causing a problem when it comes to the apostrophe in "Mom's Place".
How can I make a string that includes an apostrophe, or is there another solution for my combo box problem?
Thanks
RAF
The combo box uses a hidden CustID field (an AutoNum) but displays the CustName. It will not let me set limit_to_list to false because the field used to look up the customer is hidden (width 0).
I tried to use column 2 (the name) as searching field but something worse happens! Here it is:
I have a customer Mom's Place. This crashes the VBA code behind the combo box. In fact, any string which uses an apostrophe causes a problem. I looked at the wizard generated code and it has something like
custName & " ' "
like it's putting in an apostrophe as a delimiter, which must be causing a problem when it comes to the apostrophe in "Mom's Place".
How can I make a string that includes an apostrophe, or is there another solution for my combo box problem?
Thanks
RAF