Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.
The user enters a pay rate on the form, and the code is meant to calculate the charge rate at 20% above the pay rate. eg. a pay rate of 21 gives a charge rate as 25.2 which is correct, and computes correctly on the form.
<SCRIPT Language="VBScript"> Sub CheckChg(currentchg,Pme) dim newrate dim payrate dim bflag dim oflag bflag=document.getElementById("BMFlag").checked oflag=document.getElementById("OPSFlag").checked If Pme="AAA" then payrate= document.getElementById("AAA_P").value newrate=payrate+(payrate * 0.2) msgbox (currentchg.value < newrate) & " : " & currentchg.value & " < " & newrate If currentchg.value < newrate then currentchg.value=newrate end if end if end sub </script>
Join the community of 500,000 technology professionals and ask your questions.