K
Kathy Webster
I am trying to select records in a query where the [InvoiceDate] is between
the first of the year selected and the end of the month of the month the
user selects when he runs the query.
ie.:
User enters 5 in an unbound form's "Month" field.
[forms]![CaptureDate]![Month]
User enters 2006 in an unbound form's "Year" field.
[forms]![CaptureDate]![Year]
Query should select records whose Invoice Date is between 1/1/06 and
5/31/06.
My query has Year([InvoiceDate]) with the criteria
[forms]![ClientMonthlyFileTotals]![year]
Secondly, my query has Month([InvoiceDate]) with the criteria
<=[forms]![ClientMonthlyFileTotals]![month]
If I remove the <= from the Month criteria, I get an accurate selection of
Invoices dated in the month of June 2006. However, when I add the <=, I
still only see invoices dated in the month of June 2006.
TIA,
Kathy
the first of the year selected and the end of the month of the month the
user selects when he runs the query.
ie.:
User enters 5 in an unbound form's "Month" field.
[forms]![CaptureDate]![Month]
User enters 2006 in an unbound form's "Year" field.
[forms]![CaptureDate]![Year]
Query should select records whose Invoice Date is between 1/1/06 and
5/31/06.
My query has Year([InvoiceDate]) with the criteria
[forms]![ClientMonthlyFileTotals]![year]
Secondly, my query has Month([InvoiceDate]) with the criteria
<=[forms]![ClientMonthlyFileTotals]![month]
If I remove the <= from the Month criteria, I get an accurate selection of
Invoices dated in the month of June 2006. However, when I add the <=, I
still only see invoices dated in the month of June 2006.
TIA,
Kathy