BrianCurran
Registered User.
- Local time
- Today, 16:47
- Joined
- Jan 12, 2011
- Messages
- 12
Hi all,
I want to count the total number of orders between two dates for a particular customer. I can get the result in a query by using parameters but I want the result to show in a subform without anyone typing the parameters in.
I'm currently using a Form to enter details of customer "Orders" and I have a SubForm that displays several pieces of information from the "Customers" Table including how many orders they have pre-paid for plus the start and end dates of their annual contract.
Example:
Mr. Bloggs
12 (orders prepaid)
01 June 2010
31 May 2011
5 (orders already entered, how do I calculate this in the SubForm?)
The "Orders" table contains orders for all customers going back several years so I would like to use the SubForm data to query the Orders table and return a result.
Any suggestions on how I could do this?
Many thanks
Brian.
I want to count the total number of orders between two dates for a particular customer. I can get the result in a query by using parameters but I want the result to show in a subform without anyone typing the parameters in.
I'm currently using a Form to enter details of customer "Orders" and I have a SubForm that displays several pieces of information from the "Customers" Table including how many orders they have pre-paid for plus the start and end dates of their annual contract.
Example:
Mr. Bloggs
12 (orders prepaid)
01 June 2010
31 May 2011
5 (orders already entered, how do I calculate this in the SubForm?)
The "Orders" table contains orders for all customers going back several years so I would like to use the SubForm data to query the Orders table and return a result.
Any suggestions on how I could do this?
Many thanks
Brian.