Ok. Does the user know which Customer he is dealing with or does he have to search/select from a list?
A little more detail re the process you describe ---let's say we know the customer.
You would have a form, with a couple of text boxes (FromDate and To Date) and a button to invoke a report that uses the FromDate, ToDate and Customer to select and report the records. And you may have options to Print or Preview the Report.
Also, re level of detail.
If we looked at CustomerID ANTON From 1/1/1996 To 12/31/1998, this sort of result might appear
Code:
Customer ID |
Order Date |
TotalDollars |
ANTON |
27-Nov-1996 |
$403.20 |
ANTON |
15-Apr-1997 |
$690.00 |
ANTON |
15-Apr-1997 |
$191.25 |
ANTON |
13-May-1997 |
$1,050.00 |
ANTON |
13-May-1997 |
$184.00 |
ANTON |
13-May-1997 |
$97.50 |
ANTON |
13-May-1997 |
$825.00 |
ANTON |
19-Jun-1997 |
$702.00 |
ANTON |
19-Jun-1997 |
$560.00 |
ANTON |
19-Jun-1997 |
$820.00 |
ANTON |
22-Sep-1997 |
$936.90 |
ANTON |
22-Sep-1997 |
$20.00 |
ANTON |
25-Sep-1997 |
$75.00 |
ANTON |
25-Sep-1997 |
$68.00 |
ANTON |
25-Sep-1997 |
$232.50 |
ANTON |
28-Jan-1998 |
$380.00 |
ANTON |
28-Jan-1998 |
$280.00 |
based on a query such as
Code:
SELECT Customers.CustomerID, Orders.OrderDate, [UnitPrice]*[Quantity] AS TotalDollars
FROM (Customers INNER JOIN Orders ON
Customers.CustomerID = Orders.CustomerID) INNER JOIN
[Order Details] ON Orders.OrderID = [Order Details].OrderID
WHERE (((Customers.CustomerID)="ANTON") AND
((Orders.OrderDate) Between [From] And [T0]));
Is that what you expect?
I realize this is a query, but I'm trying to ensure your requirements are clearly defined before jumping too deep.