>"Use an expression something like:
> DateDiff("m", datefield, date())"
>
>I used the DateDiff function to derive the Month# field already, so the
>data is good. I am just having trouble making it transpose from rows
>to columns.
I thought you said that a crosstab query worked, except for
the month issue. Using DateDiff in the crosstab should
resolve that issue.
>"Are you sure you can fit 72 text boxes within the report's
>Width?"
[quoted text clipped - 3 lines]
>control that slides the time frame forward and backward so that all of
>the data can be viewed, even if it isn't all at once.
That sounds interesting, let us know how you accomplish it.

Signature
Marsh
MVP [MS Access]
anthony.pierdominici@lmco.com - 20 Dec 2006 20:52 GMT
> >"Use an expression something like:
> > DateDiff("m", datefield, date())"
[quoted text clipped - 20 lines]
> Marsh
> MVP [MS Access]
Thanks for the response Marshall, I must have missed it earlier...
I tried to use the DateDiff function in the PIVOT statement of the
query and can't get it to work. Here is the line of the query I am
working on:
PIVOT DateDiff("m", [ACCT_MTH], date());
When I try to run it, I get this error message:
"The Microsoft jet database engine does not recognize
"Forms!frmFilter!cboSub_Group" as a valid field name or expression."
"Forms!frmFilter!cboSub_Group" is a combo box that contains different
criteria that filters the query I am working on.
Marshall Barton - 21 Dec 2006 01:33 GMT
>> >"Use an expression something like:
>> > DateDiff("m", datefield, date())"
[quoted text clipped - 32 lines]
>"Forms!frmFilter!cboSub_Group" is a combo box that contains different
>criteria that filters the query I am working on.
That probably means that the ACCT_MTH field contain a value
that DateDiff can not deal with. Possible a text string or
Null

Signature
Marsh
MVP [MS Access]
anthony.pierdominici@lmco.com - 20 Dec 2006 20:52 GMT
> >"Use an expression something like:
> > DateDiff("m", datefield, date())"
[quoted text clipped - 20 lines]
> Marsh
> MVP [MS Access]
Thanks for the response Marshall, I must have missed it earlier...
I tried to use the DateDiff function in the PIVOT statement of the
query and can't get it to work. Here is the line of the query I am
working on:
PIVOT DateDiff("m", [ACCT_MTH], date());
When I try to run it, I get this error message:
"The Microsoft jet database engine does not recognize
"Forms!frmFilter!cboSub_Group" as a valid field name or expression."
"Forms!frmFilter!cboSub_Group" is a combo box that contains different
criteria that filters the query I am working on.