C
CJ
Hi groupies:
My form has a combo box (cmbCompany) that stores an ID and lists the name of
the Company. The ID column is hidden so that only the name of the company
shows up.
The SQL is:
SELECT tblCompany.lngCompanyID, tblCompany.strCompany
FROM tblCompany
ORDER BY tblCompany.strCompany;
The record source for my form is tblStimulations
I would like to be able to use a second combo box (cmbSearch) to filter my
form based on the name of the company and show all of the records for one
company.
If I just use the combo tool and use the wizard to find records based on the
selection, then I can get it to list the companies based on the forms record
source and tblCompany, but then it shows each company many times, which I do
not want.
So, I would like it to show each company once in the combo and then return
all of the records for that company.
Thanks for your thoughts
CJ
My form has a combo box (cmbCompany) that stores an ID and lists the name of
the Company. The ID column is hidden so that only the name of the company
shows up.
The SQL is:
SELECT tblCompany.lngCompanyID, tblCompany.strCompany
FROM tblCompany
ORDER BY tblCompany.strCompany;
The record source for my form is tblStimulations
I would like to be able to use a second combo box (cmbSearch) to filter my
form based on the name of the company and show all of the records for one
company.
If I just use the combo tool and use the wizard to find records based on the
selection, then I can get it to list the companies based on the forms record
source and tblCompany, but then it shows each company many times, which I do
not want.
So, I would like it to show each company once in the combo and then return
all of the records for that company.
Thanks for your thoughts
CJ