Hi, I have the following code. The weird thing is that if both the fields are null or not null then the code works fine but if one or the other is null then i get a type mismatch error. I have no idea whats causing this!!!
Code:
If IsNull(rs![Price_B]) Then
Else
rs![Price_B] = Format(IIf((rs![Price_B] > 0), (rs![Price_B] / 100 + 1), (100 / (rs![Price_B] * -1)) + 1), "#0.00")
End If
If IsNull(rs![Price_H]) Then
Else
rs![Price_H] = Format(IIf((rs![Price_H] > 0), (rs![Price_H] / 100 + 1), (100 / (rs![Price_H] * -1)) + 1), "#0.00")
End If [Code/]