Thanks could you explain what you mean by "create a build"?
Thanks for your help
Tony
"misscrf" <misscrf (AT) yahoo (DOT) com> wrote
Quote:
I would suggest creating a build in the underlying query for the
report. The build would look like this - ---Year:
Right([datefield],4) --- Then for the criteria put a parameter like so:
Forms!formtopickcriterianame!comboortextname
On the form where the user picks the ytd that they want, you can do one
of two things. You can have a text field for the user to type in the
year, (2004) or you can use a combo that will lookup only the last 4
digits of the date field, being the year, and group by it. This will
give you the years that exist in your table.
Then the report just finds records or totals that exist only within
that criteria ( date having those last 4 digits) - that gives you the
year. |