I am trying to be able to group columnar results by accounting month or by calendar month in reports/queries.
User gets popup form and clicks on start and end month, as well as 'Accounting' or 'Calendar'. The trade date on each record is compared to the underlying calendar table of the pop-up form to determine if it falls within the predefined start/end dates. eg Feb 2002 accounting month is 1/29 - 2/25. If a trade date is 1/30, and 'Calendar' reporting is requested, the tradedate on the record is compared to the calendar table, and the record should group in Jan. If 'Accounting was selected, the data should group in Feb.
What happens is Feb data falls into the Feb grouping and Jan data into Jan grouping. The correct records are reported but 3 days of Feb Accounting is grouped in Jan column and 25 days of Feb Accounting is in Feb column.
The query format is Expr1: Format([TradeDate],"mmm").
M'soft help-line told me it couldn't be done. I know this isn't impossible, half of corporate america reports on an accounting calendar. Been struggling for months on this. Working alone. None of the m'soft knowledge base articles (that I know of) address this issue. HELP! Please.
User gets popup form and clicks on start and end month, as well as 'Accounting' or 'Calendar'. The trade date on each record is compared to the underlying calendar table of the pop-up form to determine if it falls within the predefined start/end dates. eg Feb 2002 accounting month is 1/29 - 2/25. If a trade date is 1/30, and 'Calendar' reporting is requested, the tradedate on the record is compared to the calendar table, and the record should group in Jan. If 'Accounting was selected, the data should group in Feb.
What happens is Feb data falls into the Feb grouping and Jan data into Jan grouping. The correct records are reported but 3 days of Feb Accounting is grouped in Jan column and 25 days of Feb Accounting is in Feb column.
The query format is Expr1: Format([TradeDate],"mmm").
M'soft help-line told me it couldn't be done. I know this isn't impossible, half of corporate america reports on an accounting calendar. Been struggling for months on this. Working alone. None of the m'soft knowledge base articles (that I know of) address this issue. HELP! Please.