I'm calling this function from a form but am getting a type mismatch error. It works fine in the Immediate window eg ?Points(8,11,5,5) returns 2.
Public Function Points(ShotAllowance As Byte, SI As Byte, Score As Byte, Par As Byte)
Dim Diff As Byte
Dim Netscore As Byte
If ShotAllowance >...