Been browsing this forum for the first time in months - you guys are getting a bit clever.
Here's one I can understand but can't get my head around the actual query.
Table:
Invoice number (text field, could have anything in it)
Year (2002, 2003 etc)
Period (from 1 to 12)
Invoice amount
(etc, there are loads more fields)
I want to start with a simple query that will sum the invoice amounts across periods.
Fields you enter (they are already on a form) are cblperiodfrom, cblperiodto, cblyearfrom, cblyearto and are all combo box lists (hence the name) that only show valid entries.
So asking for 8/2002 to 2/2003 should give 8, 9, 10, 11, 12, 1 and 2. My current query works in the same financial year, but not across years as I can't work it out.
I know it isn't difficult, just can't work the logic.
Here's one I can understand but can't get my head around the actual query.
Table:
Invoice number (text field, could have anything in it)
Year (2002, 2003 etc)
Period (from 1 to 12)
Invoice amount
(etc, there are loads more fields)
I want to start with a simple query that will sum the invoice amounts across periods.
Fields you enter (they are already on a form) are cblperiodfrom, cblperiodto, cblyearfrom, cblyearto and are all combo box lists (hence the name) that only show valid entries.
So asking for 8/2002 to 2/2003 should give 8, 9, 10, 11, 12, 1 and 2. My current query works in the same financial year, but not across years as I can't work it out.
I know it isn't difficult, just can't work the logic.