A family of Microsoft relational database management systems designed for ease of use.
Create a standard module by selecting Insert > Module in the Visual Basic Editor.
Copy the following code into the module:
Function NeedPoints(AssessedNeedAmt As Variant) As Variant
If IsNull(AssessedNeedAmt) Then
NeedPoints = Null
ElseIf Not IsNumeric(AssessedNeedAmt) Then
NeedPoints = Null
ElseIf AssessedNeedAmt > 10000 Then
NeedPoints = 25
Else
NeedPoints = (AssessedNeedAmt - 1) \ 400
End If
End Function
In the query based on the table, create a calculated column:
Points: NeedPoints([AssessedNeedAmt])