This seems to me to be a simple thing, but alas I can't figure it out. I have a combo box -cboSelYearMo. My query for the combo box is as follows:
SELECT DISTINCT Format([DateforYear],("yyyymm")) AS SelYrMo
FROM tblPPDates;
That seems to be working fine.
My subform works off a query of the same table with a calculated field called PPYrMo: Format([DateforYear],"yyyymm"). This query list all dates in the month and a comment for each day. I want to be able to pick a Year and month and pull all the records for the month into my subform. I thought I could tie the combo box to the subform by putting the Master field as [cboSelYearNo] and the child field as [PPYrMo], but when I select from the combo box nothing appears in the subform. I did do a requery of the subform in the change event of the combo box. Any help would be appreciated. Thanks.
SELECT DISTINCT Format([DateforYear],("yyyymm")) AS SelYrMo
FROM tblPPDates;
That seems to be working fine.
My subform works off a query of the same table with a calculated field called PPYrMo: Format([DateforYear],"yyyymm"). This query list all dates in the month and a comment for each day. I want to be able to pick a Year and month and pull all the records for the month into my subform. I thought I could tie the combo box to the subform by putting the Master field as [cboSelYearNo] and the child field as [PPYrMo], but when I select from the combo box nothing appears in the subform. I did do a requery of the subform in the change event of the combo box. Any help would be appreciated. Thanks.