'First, set iTier1 to a default value - empty, 0, whatever
iTier1 = "0" 'Or something else (including "") since it's otherwise not valid.
'Then test if v1 meets the criteria necessary to assign a different value to iTier1 -
'leave the default if not, otherwise, make iTier1 the new value.
If IsNull(v1) = False Then
If Len(v1) > 0 Then
If IsNumeric(v1) = True Then
iTier1 = Right(v1, 1) ' gives 1 for US1, 2 for US2 and so on
End If
End If
End If
If Nz(v1, "") <> "" Then
iTier1 = Right(v1, 1) ' gives 1 for US1, 2 for US2 and so on
End If
If Nz(v2, "") <> "" Then
iTier2 = Right(v2, 1)
End If