D
Dos Equis
will allow me to calculate a value on a form depending on the
information in two other fields?
For instance:
If ad_Advertiser can have 3 values Private party, Commercial or
National and each has a different rate and the cost of an ad is
dependent on the number of words in the ad, i would expect to write
something like this:
CCUR(IIF([ad_Advertiser]=Private party, 3.50+(([wordcount]-10)*.35);
IIF([ad_Advertiser]=Commercial, 4.50+(([wordcount]-10)*.45);
IIF([ad_Advertiser]=National, 6.50+(([wordcount]-10)*.65)
I know that the IIF function is not correct but not sure what to use
in its place. any help would be appreciated. BTW, the total will be
stored in the field for archive data and so that invoices are
accurate.
I am using Access 2000.
Thanks for any help you can provide.
Byron
information in two other fields?
For instance:
If ad_Advertiser can have 3 values Private party, Commercial or
National and each has a different rate and the cost of an ad is
dependent on the number of words in the ad, i would expect to write
something like this:
CCUR(IIF([ad_Advertiser]=Private party, 3.50+(([wordcount]-10)*.35);
IIF([ad_Advertiser]=Commercial, 4.50+(([wordcount]-10)*.45);
IIF([ad_Advertiser]=National, 6.50+(([wordcount]-10)*.65)
I know that the IIF function is not correct but not sure what to use
in its place. any help would be appreciated. BTW, the total will be
stored in the field for archive data and so that invoices are
accurate.
I am using Access 2000.
Thanks for any help you can provide.
Byron