Gilbertjoe
MIS
I have a form/subform linked by account number. My main form(customers) has these fields:
ACCOUNT(primary key)
CUSTOMER(text)
ADDRESS(text)
My subform (trouble tickets) has these fields:
TICKETNUMBER(primary key)
ACCOUNT(linked to main form)
TROUBLE(memo)
DATE(short date)
CALLTIME(number)(user enters number of minutes on call)
CALLCOST(currency).
Problem 1: need to auto calculate (on current?) the CALLCOST field when CALLTIME is entered but am not sure of the code to do this.Here's what i need it to do:
If CALLTIME is 1 to 15 minutes then CALLCOST is $50.00
If CALLTIME is from 15-30 minutes then CALLCOST is $80.00
If CALLTIME is over 30 minutes then CALLCOST is $100.00 plus an additional $20.00 for every 15 minutes after.
Problem 2: How do I put a field in which will calculate the total call cost for just the current month for each customer in the subform? (so everytime I move to another customer in the mainform the field in the subform displays total billed for the current month for that customer)
ACCOUNT(primary key)
CUSTOMER(text)
ADDRESS(text)
My subform (trouble tickets) has these fields:
TICKETNUMBER(primary key)
ACCOUNT(linked to main form)
TROUBLE(memo)
DATE(short date)
CALLTIME(number)(user enters number of minutes on call)
CALLCOST(currency).
Problem 1: need to auto calculate (on current?) the CALLCOST field when CALLTIME is entered but am not sure of the code to do this.Here's what i need it to do:
If CALLTIME is 1 to 15 minutes then CALLCOST is $50.00
If CALLTIME is from 15-30 minutes then CALLCOST is $80.00
If CALLTIME is over 30 minutes then CALLCOST is $100.00 plus an additional $20.00 for every 15 minutes after.
Problem 2: How do I put a field in which will calculate the total call cost for just the current month for each customer in the subform? (so everytime I move to another customer in the mainform the field in the subform displays total billed for the current month for that customer)