I am working on a Sales Data page of a Rent a car database where I encounter the below problem:
I have the below fields in a FORM (called Sales ) namely:
1. Odometer_Start
2. Odometer_End
3. Kilometer_Driven
4. Extra_Kilometer
5. Total_Days
6. Extra_Kilometer_Charge
and a fied in a SUBFORM (called Car_Data) namely:
1. Kilometer_Allowance (150 per day)
If a customer rent a car at 1000KM and returned it at 1100KM, he drove 100KM though he has 150 allowance. Here in the Extra_Kilometer field I don't want to appeare the negative value (-50), instead, it should be Zero value. Please help me to provide a code in Access.