Hi guys,
I have a forum attached is the screenshot:
- I have if statement in check box when someone click on that check box it will fill the value automaticllay it's static value for each
- once the user click on check box on the (Total Quantity) I have expression that says (=value+value2)
- and on this (Total Quantity) I have VBA on (AfterUpdate) and the condition is if >40 set it back to 40 and give me msgbox warning me
as well as it will calculate this value here is the code:
Code:
Private Sub s1totalqtty_AfterUpdate()
If Me.s1totalqtty > 40 Then
MsgBox "Your Main stock is only 40"
Me.s1totalqtty = 40
End If
If Me.s1totalqtty > 10 Then
Me.s1totalfees = (Me.Count_Of_Days * 150) + 1465
End Sub
but the problem is now it's not working... can you suggest any changes?
thanks