Try this, using the 'Like' that I suggested earlier:
SELECT [First Name] & " " & [Surname] AS Name
FROM tblCustomers
WHERE (
[tblCustomers].[Company Name] Like "*" & [Forms]![FrmSearchCriteria]![Company Name]);
Note also that by using the
"*" & you will get results even if the company name combo is empty. In fact you will get all the records if that is the case; which means that your users can choose to select a company or not, if they do the list in the Name combo will be more limited, if not they get the lot; I'm sure that they'll soon figure out how to make their own lives easier.
I'm also concerned that you appear to have a combo named after a field, i.e: Company Name. It is good practice to give controls identifiable names, for example, for your company name combo I would have used cboCompanyName. When referenced elsewhere it is then obvious that the item being referred to is a combo box (from the cbo prefix).
Could I also just mention at this point that you should try and steer clear of having spaces in field names, which it appears that you have? Check out
http://www.mvps.org/access/general/gen0012.htm
and
http://support.microsoft.com/defaul...port/kb/articles/q173/7/38.asp&NoWebContent=1
for advice on naming conventions.
You also need to refresh the Name combo in the After Update event of the Company Name combo. If the Name combo is called cboName this can be done by putting the following line of code in the Company Name combo AfterUpdate event:
me.cboName.refresh
By correctly naming controls you can also prevent complications that sometimes arise from having a control named directly after the field, for example; you might find that the refresh command above won't work if the combo has the same name as the field, Access is like that sometimes.
HTH
Tim