E
Emma
To set report criteria for a form, I am trying to
populate a combo box with distinct years contained in my
table, i.e. The query looks at the table's DateOpened
field and produces a list of distinct years (2001, 2002,
2003, 2004, etc.) that user can select from.
Details for the combo box are:
Name: cboReportYear
Control source: <blank>
Row source type: Table/Query
Row source:SELECT DISTINCT DatePart("yyyy",[DateOpened])
AS RptYear FROM tblService;
The query runs fine on its own, but when I run the form
the combo box is blank. Can someone tell me what am I
doing wrong?
Thank you,
Emma
populate a combo box with distinct years contained in my
table, i.e. The query looks at the table's DateOpened
field and produces a list of distinct years (2001, 2002,
2003, 2004, etc.) that user can select from.
Details for the combo box are:
Name: cboReportYear
Control source: <blank>
Row source type: Table/Query
Row source:SELECT DISTINCT DatePart("yyyy",[DateOpened])
AS RptYear FROM tblService;
The query runs fine on its own, but when I run the form
the combo box is blank. Can someone tell me what am I
doing wrong?
Thank you,
Emma