A
Alberta Rose
Hello.
Some background for my question. I have a db that contains (among other
things) cost codes and cost types. I have written IIf statements for this,
but now think that it's going to get way too big, I want to use VBA coding.
For example. If cost code/cost type = 20110.5320 (a cost field) and is
greater than zero, then take this amount and divide it by txtFirewatchLabEst
(which is an manhour field). Result returned in currency format.
I have over 40 of these scenareos to perform these calculations.
In the next field:
If cost code/cost type = 20110.5320 (a cost field) and is creater than zero,
then take this amount and divide it by 13210.5320 (a cost field as well) and
return the result in % format.
I have over 30 different combinations of these as well.
Any suggestions on how to get going with the VBA coding?
Laurie
Some background for my question. I have a db that contains (among other
things) cost codes and cost types. I have written IIf statements for this,
but now think that it's going to get way too big, I want to use VBA coding.
For example. If cost code/cost type = 20110.5320 (a cost field) and is
greater than zero, then take this amount and divide it by txtFirewatchLabEst
(which is an manhour field). Result returned in currency format.
I have over 40 of these scenareos to perform these calculations.
In the next field:
If cost code/cost type = 20110.5320 (a cost field) and is creater than zero,
then take this amount and divide it by 13210.5320 (a cost field as well) and
return the result in % format.
I have over 30 different combinations of these as well.
Any suggestions on how to get going with the VBA coding?
Laurie