I am trying to code a generic query that will use a year provided by the user on a combo box. The user will select a year (I hope to do this for months as well) then the query will run using the between function.
My problem is supplying the dates for the 'Between' statement.
Here is one of my many attempts (please don't laugh).
Between #01/01/(format(Forms![FrmQryTotalHolsTakenLeft]![Combo18],"yy"))# and #31/12/(format(Forms![FrmQryTotalHolsTakenLeft]![Combo18],"yy"))#
I'd be grateful for any help.
Cheers,
NH
My problem is supplying the dates for the 'Between' statement.
Here is one of my many attempts (please don't laugh).
Between #01/01/(format(Forms![FrmQryTotalHolsTakenLeft]![Combo18],"yy"))# and #31/12/(format(Forms![FrmQryTotalHolsTakenLeft]![Combo18],"yy"))#
I'd be grateful for any help.
Cheers,
NH