SirStevie3
Registered User.
- Local time
- Today, 10:36
- Joined
- Jul 29, 2013
- Messages
- 58
On a subform I have a Rate box and a Rate_Type box. both are already populated.
Rate_type can be "day","session", or "hour"
I have a Total Charges text box where i would like the... uh... total charges to be displayed.
so i know if the type were "day" or "session" i would just mirror the value of Rate in Total Charges. but if it were by hour i would have to do some calculations.
i've never done an IIf statement before, and its proving to be a little difficult to grasp. can someone point me in the right direction?
ps. if the type is hour, there are also time_start and time_end controls that would be used to calculate how many hours to multiply the rate by. it would be helpfull to round to the next 15 minutes also but i'll cross that bridge when i get there... for now im just concerned with the if then thing
Rate_type can be "day","session", or "hour"
I have a Total Charges text box where i would like the... uh... total charges to be displayed.
so i know if the type were "day" or "session" i would just mirror the value of Rate in Total Charges. but if it were by hour i would have to do some calculations.
i've never done an IIf statement before, and its proving to be a little difficult to grasp. can someone point me in the right direction?
ps. if the type is hour, there are also time_start and time_end controls that would be used to calculate how many hours to multiply the rate by. it would be helpfull to round to the next 15 minutes also but i'll cross that bridge when i get there... for now im just concerned with the if then thing