bopo
01-11-2008, 04:00 AM
Hi
Well basically this code isnt working, I dont know if its my logic that is causing it though, could someone take a look at the code below and see what you think.
If StoreMM >= 10 <= 11 Then
Season = "off peak"
ElseIf StoreMM >= 4 <= 8 Then
Season = "peak"
ElseIf StoreMM >= 12 <= 1 Then
MsgBox ("Holidays cannot be booked from 01/12 until 31/01")
ElseIf StoreMM >= 2 <= 3 Then
Season = "off peak"
End If
End If
End If
ps StoreMM holds an integer value
Well basically this code isnt working, I dont know if its my logic that is causing it though, could someone take a look at the code below and see what you think.
If StoreMM >= 10 <= 11 Then
Season = "off peak"
ElseIf StoreMM >= 4 <= 8 Then
Season = "peak"
ElseIf StoreMM >= 12 <= 1 Then
MsgBox ("Holidays cannot be booked from 01/12 until 31/01")
ElseIf StoreMM >= 2 <= 3 Then
Season = "off peak"
End If
End If
End If
ps StoreMM holds an integer value