N
Normsn
(As a beginner) I am trying to do 2 things
1) On a form, calculate a field (sales total) based on a lookup range
– i.e. form has a sales price (data entry) and a total (calculated
control that refers to a table - tblRate)
The tblRate has 4 fields - LowPrice, HighPrice, SalesRate, CommRate
The first 2 records are $0, $4.99, 30%, 40% and $5.00, $6.99, 40%,
50%
The idea being that if the sales price is $3 look it up in the tblRate
(in this case - between $0 and $4.99 and multiply the sales price by
30% etc.)
Given that there may be many records in the tableRate, how do I code
the calculation on the form without using a lot of code and with the
ability to add more records easily in the tblRate.
2) Once the form is calculated – what’s the easiest way to write the
major form fields to a new table (I know you don’t usually store
calculated fields- but the rate changes frequently so I need to have a
history transaction file) – how do you write the code to store the
‘output’ of the calc fields
Many thanks for your help
1) On a form, calculate a field (sales total) based on a lookup range
– i.e. form has a sales price (data entry) and a total (calculated
control that refers to a table - tblRate)
The tblRate has 4 fields - LowPrice, HighPrice, SalesRate, CommRate
The first 2 records are $0, $4.99, 30%, 40% and $5.00, $6.99, 40%,
50%
The idea being that if the sales price is $3 look it up in the tblRate
(in this case - between $0 and $4.99 and multiply the sales price by
30% etc.)
Given that there may be many records in the tableRate, how do I code
the calculation on the form without using a lot of code and with the
ability to add more records easily in the tblRate.
2) Once the form is calculated – what’s the easiest way to write the
major form fields to a new table (I know you don’t usually store
calculated fields- but the rate changes frequently so I need to have a
history transaction file) – how do you write the code to store the
‘output’ of the calc fields
Many thanks for your help