danikuper
Registered User.
- Local time
- Today, 18:27
- Joined
- Feb 6, 2003
- Messages
- 147
Hi!
I have a database for sales orders with tables like:
tblOrder
tblRep
tblRep-Order
tblQuota
tblRep-Quota
Each sales rep is linked to an order (via tblRep-Order). Each rep also has a monthly quota (tblRe-Quota). Besides his/her quota, the tblRep-Quota also has a field for Attainment, that is, how close to the quota that rep is.
I've created a query that based on a month selected from a combo-box gives me:
Rep, Total$, Quota
What I'd like to do is as the query is run, to calculate and update the attainment field (total$/quota) so I'd get as result of the query (shown in my form) the: Rep, Total$, Quota, Attainment.
Is there an easy way to accomplish that?
any help is greatly appreciated!!!!

I have a database for sales orders with tables like:
tblOrder
tblRep
tblRep-Order
tblQuota
tblRep-Quota
Each sales rep is linked to an order (via tblRep-Order). Each rep also has a monthly quota (tblRe-Quota). Besides his/her quota, the tblRep-Quota also has a field for Attainment, that is, how close to the quota that rep is.
I've created a query that based on a month selected from a combo-box gives me:
Rep, Total$, Quota
What I'd like to do is as the query is run, to calculate and update the attainment field (total$/quota) so I'd get as result of the query (shown in my form) the: Rep, Total$, Quota, Attainment.
Is there an easy way to accomplish that?
any help is greatly appreciated!!!!