I'll admit I'm a newb.....any help is much appreciated. I'm getting "else without if" errors. I know this is self explanitory, but I'm still not getting it after trying multiple variations.
txtTBASS1 is a text box on a form (frmService)
txtTBASS1pts is a text box on a form (frmService)
Here is my code:
Private Sub txtTBASS1_LostFocus()
If Me.txtTBASS1 <= 43.49 Then
Me.txtTBASS1pts = 0
Else
If Me.txtTBASS1 > 44.5 < 51.99 Then
Me.txtTBASS1pts = 40
End If
Else
If Me.txtTBASS1 > 52 < 59.99 Then
Me.txtTBASS1pts = 70
End If
Else
If Me.txtTBASS1 > 60 < 67.99 Then
Me.txtTBASS1pts = 135
End If
Else
If Me.txtTBASS1 > 68 < 75.99 Then
Me.txtTBASS1pts = 205
End If
Else
If Me.txtTBASS1 > 76 Then
Me.txtTBASS1pts = 270
End If
End Sub
txtTBASS1 is a text box on a form (frmService)
txtTBASS1pts is a text box on a form (frmService)
Here is my code:
Private Sub txtTBASS1_LostFocus()
If Me.txtTBASS1 <= 43.49 Then
Me.txtTBASS1pts = 0
Else
If Me.txtTBASS1 > 44.5 < 51.99 Then
Me.txtTBASS1pts = 40
End If
Else
If Me.txtTBASS1 > 52 < 59.99 Then
Me.txtTBASS1pts = 70
End If
Else
If Me.txtTBASS1 > 60 < 67.99 Then
Me.txtTBASS1pts = 135
End If
Else
If Me.txtTBASS1 > 68 < 75.99 Then
Me.txtTBASS1pts = 205
End If
Else
If Me.txtTBASS1 > 76 Then
Me.txtTBASS1pts = 270
End If
End Sub