J
Jim S.
I'm working in Access 2000 with a table of customer orders that has five
fields: OrderID, CustomerID, Amount, Date, and Recurring (Y/N). All orders
that are recurring will recur on an annual basis for the foreseeable future.
Now I want to eventually create a crosstab query for actual and projected
orders through a given date which would include the CustomerID as the row
heading and the Year(Date) as the column heading.
Example:
Table
OrderID CutomerID Amount Date Recurring
1 A $100 5/2/2005 Y
2 B $500 8/5/2005 N
3 C $200 9/30/2007 N
Crosstab Query
2005 2006 2007 2008
A $100 $100 $100 $100
B $500
C $200
My question is from a design perspective, what is the best way to
handle/"create" the additional amounts that are shown for Company A orders
(i.e. the recurring amounts)? Would it be through a function or query to
create additional records in a temporary table? Any guidance or examples you
can provide are greatly appreciated.
fields: OrderID, CustomerID, Amount, Date, and Recurring (Y/N). All orders
that are recurring will recur on an annual basis for the foreseeable future.
Now I want to eventually create a crosstab query for actual and projected
orders through a given date which would include the CustomerID as the row
heading and the Year(Date) as the column heading.
Example:
Table
OrderID CutomerID Amount Date Recurring
1 A $100 5/2/2005 Y
2 B $500 8/5/2005 N
3 C $200 9/30/2007 N
Crosstab Query
2005 2006 2007 2008
A $100 $100 $100 $100
B $500
C $200
My question is from a design perspective, what is the best way to
handle/"create" the additional amounts that are shown for Company A orders
(i.e. the recurring amounts)? Would it be through a function or query to
create additional records in a temporary table? Any guidance or examples you
can provide are greatly appreciated.