D
dpj
I have a subform with combo box. User's are having difficulty selecting
values from the combo box directly because so many of the values are similar
(many beginning with the word "university"). Also, the hard copy entry form
often has only an approximation of the correct name and the user often can't
find the correct name in the combo box. This is leading to a lot of incorrect
names being added. What I did was create a search form
(frmSchoolNameCriteria) based on a paramenter query and the results display
in yet another form (frmSchoolName). I would like users to be able to
double-click on an entry in frmSchoolName and have the subform combo box
(cboMedSchool) show the selection. Right now users are have to re-type or
cut/paste the correct name which is clunky.
Rowsource for Combobox (cboMedSchool) is table/query:
SELECT MedSchools.MedSchoolID, MedSchools.[SchoolName],
MedSchools.[SchoolLocation] FROM MedSchools ORDER BY [SchoolName],
[SchoolLocation];
Record Source for the form frmSchoolName is qrySchoolName:
SELECT MedSchools.[SchoolName], MedSchools.[SchoolLocation],
FROM MedSchools
WHERE (((MedSchools.[SchoolName]) Like "*" &
[Forms]![frmSchoolNameCriteria]![tboFacilityName] & "*") AND
((MedSchools.[SchoolLocation]) Like "*" &
[Forms]![frmSchoolNameCriteria]![tboFacilityLocation] & "*")) OR
(((MedSchools.[SchoolName]) Like "*" &
[Forms]![frmSchoolNameCriteria]![tboFacilityName] & "*") AND
(([Forms]![frmSchoolNameCriteria]![tboFacilityLocation]) Is Null))
ORDER BY MedSchools.[SchoolName];
Thanks in advance for any guidance.
values from the combo box directly because so many of the values are similar
(many beginning with the word "university"). Also, the hard copy entry form
often has only an approximation of the correct name and the user often can't
find the correct name in the combo box. This is leading to a lot of incorrect
names being added. What I did was create a search form
(frmSchoolNameCriteria) based on a paramenter query and the results display
in yet another form (frmSchoolName). I would like users to be able to
double-click on an entry in frmSchoolName and have the subform combo box
(cboMedSchool) show the selection. Right now users are have to re-type or
cut/paste the correct name which is clunky.
Rowsource for Combobox (cboMedSchool) is table/query:
SELECT MedSchools.MedSchoolID, MedSchools.[SchoolName],
MedSchools.[SchoolLocation] FROM MedSchools ORDER BY [SchoolName],
[SchoolLocation];
Record Source for the form frmSchoolName is qrySchoolName:
SELECT MedSchools.[SchoolName], MedSchools.[SchoolLocation],
FROM MedSchools
WHERE (((MedSchools.[SchoolName]) Like "*" &
[Forms]![frmSchoolNameCriteria]![tboFacilityName] & "*") AND
((MedSchools.[SchoolLocation]) Like "*" &
[Forms]![frmSchoolNameCriteria]![tboFacilityLocation] & "*")) OR
(((MedSchools.[SchoolName]) Like "*" &
[Forms]![frmSchoolNameCriteria]![tboFacilityName] & "*") AND
(([Forms]![frmSchoolNameCriteria]![tboFacilityLocation]) Is Null))
ORDER BY MedSchools.[SchoolName];
Thanks in advance for any guidance.