Hi guys....
could any one please tell me why this prodedure doesn't work properly.
e.g. if i enter a value that is <=1180, instead of calculating the tax at
10%, it does it a t 20%. if i enter a value over 29400, it calculates the
tax at 10% instead of 40% etc.....WHY...WHY...WHY!!!!!!
Thanxs Chryso
<%
Sub PaidTaxToDate (ByRef TaxTD)
Select Case TaxTD
Case MyAcctTaxPayTD <= 1880
TaxTD = (FormatCurrency(MyAcctTaxPayTD/100)*BR)
Case MyAcctTaxPayTD > 1880 AND MyAcctTaxPayTD < 29401
TaxTD = (FormatCurrency(MyAcctTaxPayTD/100)*SR)
Case MyAcctTaxPayTD > 29400
TaxTD = (FormatCurrency(MyAcctTaxPayTD/100)*HR)
End Select
Call StoreTaxTD(TaxTD)
End Sub
Sub StoreTaxTD(AcctTaxTD)
Response.write "<BR> Your Tax Paid to Date is " &AcctTaxTD
End Sub
%>
could any one please tell me why this prodedure doesn't work properly.
e.g. if i enter a value that is <=1180, instead of calculating the tax at
10%, it does it a t 20%. if i enter a value over 29400, it calculates the
tax at 10% instead of 40% etc.....WHY...WHY...WHY!!!!!!
Thanxs Chryso
<%
Sub PaidTaxToDate (ByRef TaxTD)
Select Case TaxTD
Case MyAcctTaxPayTD <= 1880
TaxTD = (FormatCurrency(MyAcctTaxPayTD/100)*BR)
Case MyAcctTaxPayTD > 1880 AND MyAcctTaxPayTD < 29401
TaxTD = (FormatCurrency(MyAcctTaxPayTD/100)*SR)
Case MyAcctTaxPayTD > 29400
TaxTD = (FormatCurrency(MyAcctTaxPayTD/100)*HR)
End Select
Call StoreTaxTD(TaxTD)
End Sub
Sub StoreTaxTD(AcctTaxTD)
Response.write "<BR> Your Tax Paid to Date is " &AcctTaxTD
End Sub
%>