P
Phil
I have records which represent invoices including the date
and invoice total. In a query I add two columns
converting the date to a month number (1-12) and the date
to a year (2003, 2004, etc). The query prompts the sales
person for the [current year] and [current month]. The
YTD sales formula in the query is as follows:
if([current year]=[year] and [month]<=[current month], ...
This function works until October (10), then I have to
change the formula to .... and [month]<([current month]
+1),... this doesn't make any sense to me. The original
formala should work fine (it does for months 1-9), but as
soon as I hit a two digit month, it stops working.
The new formula works, but my curiosity is killing me.
Any ideas?
Phil
and invoice total. In a query I add two columns
converting the date to a month number (1-12) and the date
to a year (2003, 2004, etc). The query prompts the sales
person for the [current year] and [current month]. The
YTD sales formula in the query is as follows:
if([current year]=[year] and [month]<=[current month], ...
This function works until October (10), then I have to
change the formula to .... and [month]<([current month]
+1),... this doesn't make any sense to me. The original
formala should work fine (it does for months 1-9), but as
soon as I hit a two digit month, it stops working.
The new formula works, but my curiosity is killing me.
Any ideas?
Phil