G
Guest
Okay, apparently I don't know how to construct IF Then statements. This one
is not giving me the right price structure.
If (52 < Me!Length <= 61) Then
Me.Price = 40.95
ElseIf (44 < Me!Length <= 52) Then
Me.Price = 37.75
ElseIf (34 < Me!Length <= 44) Then
Me!Price = 34.28
ElseIf (27 < Me!Length <= 34) Then
Me!Price = 24.18
ElseIf (14 < Me!Length <= 27) Then
Me!Price = 15.09
ElseIf (7 < Me!Length <= 14) Then
Me!Price = 6.63
ElseIf (0 < Me!Length <= 7) Then
Me!Price = 2.91
Else: Me!Price = "Oversize"
End If
The Current record for Me!Length is being passed through to the SQL, but I
can't get the If Then statements to select the appropriate price for the
Me!Price text box. Please help, if you can.
is not giving me the right price structure.
If (52 < Me!Length <= 61) Then
Me.Price = 40.95
ElseIf (44 < Me!Length <= 52) Then
Me.Price = 37.75
ElseIf (34 < Me!Length <= 44) Then
Me!Price = 34.28
ElseIf (27 < Me!Length <= 34) Then
Me!Price = 24.18
ElseIf (14 < Me!Length <= 27) Then
Me!Price = 15.09
ElseIf (7 < Me!Length <= 14) Then
Me!Price = 6.63
ElseIf (0 < Me!Length <= 7) Then
Me!Price = 2.91
Else: Me!Price = "Oversize"
End If
The Current record for Me!Length is being passed through to the SQL, but I
can't get the If Then statements to select the appropriate price for the
Me!Price text box. Please help, if you can.