B
bpauley
I have a combo box on a form that is filtered to one record based on
previous selections on the form.
My question is how to get the one record to display in the combo box
automatically, so the user does not have to click the down arrow and select
the one record.
The combo box name that I want to display the filtered record is:
cboCurrRateAmt
Control Source of the combo box: CurrRateAmt
Field in the tblFacilityRates that I want to display: RateAmt
SQL Row Source:
SELECT tblFacilityRates.RateAmt, tblFacilityRates.FacilityID,
tblFacilityRates.RateTypeID, tblFacilityRates.RateTypeDescription,
tblFacilityRates.RateType
FROM tblFacilityRates
WHERE
(((tblFacilityRates.FacilityID)=[forms]![frmEnterMonthlyVisits].[cbofacilityID])
AND
((tblFacilityRates.RateTypeID)=[forms]![frmEnterMonthlyVisits].[cboRateTypeID])
AND
((tblFacilityRates.RateTypeDescription)=[forms]![frmEnterMonthlyVisits].[txtposition]))
ORDER BY tblFacilityRates.FacilityID, tblFacilityRates.RateTypeID,
tblFacilityRates.RateTypeDescription
WITH OWNERACCESS OPTION;
Thanks for your input.
novice user,
Bill
previous selections on the form.
My question is how to get the one record to display in the combo box
automatically, so the user does not have to click the down arrow and select
the one record.
The combo box name that I want to display the filtered record is:
cboCurrRateAmt
Control Source of the combo box: CurrRateAmt
Field in the tblFacilityRates that I want to display: RateAmt
SQL Row Source:
SELECT tblFacilityRates.RateAmt, tblFacilityRates.FacilityID,
tblFacilityRates.RateTypeID, tblFacilityRates.RateTypeDescription,
tblFacilityRates.RateType
FROM tblFacilityRates
WHERE
(((tblFacilityRates.FacilityID)=[forms]![frmEnterMonthlyVisits].[cbofacilityID])
AND
((tblFacilityRates.RateTypeID)=[forms]![frmEnterMonthlyVisits].[cboRateTypeID])
AND
((tblFacilityRates.RateTypeDescription)=[forms]![frmEnterMonthlyVisits].[txtposition]))
ORDER BY tblFacilityRates.FacilityID, tblFacilityRates.RateTypeID,
tblFacilityRates.RateTypeDescription
WITH OWNERACCESS OPTION;
Thanks for your input.
novice user,
Bill