Ok.. so ive writted this code to put a value in a text box in a form, but it only seems to work only if i use the On Click declaration, and it updates ALL fields with the same value.
Dim amount
Dim difference
difference = Date - [txtDateLoaned]
If difference > 2 Then
amount = difference * 2
[PenApplied] = Format(amount, "£##,##0.00")
Else
[PenApplied] = "Not applicable"
End If
I've attached an image because my english isnt very good.
Dim amount
Dim difference
difference = Date - [txtDateLoaned]
If difference > 2 Then
amount = difference * 2
[PenApplied] = Format(amount, "£##,##0.00")
Else
[PenApplied] = "Not applicable"
End If
I've attached an image because my english isnt very good.