Is there any way to edit a custom function without going into the modules window and accessing the actual module?
From time to time the user will need to add, edit or remove parts of the function referenced by the "select" clause which does the calculation (usually 1 or 2 lines of simple code) and at the moment we have to allow him to edit the module itself - a bit dangerous!
The function returns an insurance premium based on the type of cover selected, as well as the vehicle data. The steps involved are
1. Create a new cover description eg PV - Private Vehicle
(this is held in a table so no problem here!)
2. Create the corresponding code in the CalcPrem(cc,value,cover) function which calculates the amount of premium based on engine capacity, value of vehicle and required cover type. The function uses a simple select case based on the cover so we have to add the case "PV" line into the code with it's associated formula.
Appreciate any help!
From time to time the user will need to add, edit or remove parts of the function referenced by the "select" clause which does the calculation (usually 1 or 2 lines of simple code) and at the moment we have to allow him to edit the module itself - a bit dangerous!
The function returns an insurance premium based on the type of cover selected, as well as the vehicle data. The steps involved are
1. Create a new cover description eg PV - Private Vehicle
(this is held in a table so no problem here!)
2. Create the corresponding code in the CalcPrem(cc,value,cover) function which calculates the amount of premium based on engine capacity, value of vehicle and required cover type. The function uses a simple select case based on the cover so we have to add the case "PV" line into the code with it's associated formula.
Appreciate any help!