LimitedTech
Technical User
I want to use the following code in a text box on a continuous Form.
If
[TxtBillComm4] ="NORMAL" Then
[CurTotalPay] = [CurRate]+[CurFee]
ElseIf [TxtBillComm4] = "SPECIAL" Then
[CurTotalPay] = [CurRate]
ElseIf [TxtBillComm4] = "NO BASE" Then
[CurTotalPay] = [CurRate]
ElseIf [TxtBillComm4] = "OUTSIDE" Then
[CurTotalPay] = [CurRate]
Else
[CurTotalPay] = 0
End If
The code will work but it puts the results of line 1 in all the [CurTotalPay] in the subsequent records. I've tried putting it in different events but cant seem to get this to work. What am I doing wrong?
If
[TxtBillComm4] ="NORMAL" Then
[CurTotalPay] = [CurRate]+[CurFee]
ElseIf [TxtBillComm4] = "SPECIAL" Then
[CurTotalPay] = [CurRate]
ElseIf [TxtBillComm4] = "NO BASE" Then
[CurTotalPay] = [CurRate]
ElseIf [TxtBillComm4] = "OUTSIDE" Then
[CurTotalPay] = [CurRate]
Else
[CurTotalPay] = 0
End If
The code will work but it puts the results of line 1 in all the [CurTotalPay] in the subsequent records. I've tried putting it in different events but cant seem to get this to work. What am I doing wrong?