K
kinlye
I have the following code in the after update event of QuanToOrder.
It's supposed to give a message box that says Can't order blah blah blah if
you try to order more than you have set for the ideal quantity and do nothing
if it is = or less than... but it is showing the message box regardless of
whether the strTotalQuan is less than, equal to, or greater than the ideal
quantity.
What am I doing wrong????
Dim strTotalQuan As String
strTotalQuan = "[QuanOnHand]+[QuanToOrder]"
Select Case Me.IdealQuant
Case Is > strTotalQuan
MsgBox "You Can't Order More Than Your Preset Ideal Quantity.
Please change " & _
"your quantity to order.", vbOKOnly, "Ideal Quantity"
Cancel = True
Case Else
End Select
It's supposed to give a message box that says Can't order blah blah blah if
you try to order more than you have set for the ideal quantity and do nothing
if it is = or less than... but it is showing the message box regardless of
whether the strTotalQuan is less than, equal to, or greater than the ideal
quantity.
What am I doing wrong????
Dim strTotalQuan As String
strTotalQuan = "[QuanOnHand]+[QuanToOrder]"
Select Case Me.IdealQuant
Case Is > strTotalQuan
MsgBox "You Can't Order More Than Your Preset Ideal Quantity.
Please change " & _
"your quantity to order.", vbOKOnly, "Ideal Quantity"
Cancel = True
Case Else
End Select