- Total Members: 220,025
- Threads: 525,387
- Posts: 976,997
-
December 30th, 2012, 08:56 PM
#1
newbie help please look...
so i'm creating a access with a question saying the quantity must not exceed 10 if it exceed, then it will have a msgbox saying exceeded
this is my code for my sell button
Private Sub Sell_Click()
Me.Quantity.DefaultValue = 1
If Me.Quantity.Value > 10 Then
MsgBox "exceeded limit"
End If
End Sub
i don't understand, quantity value greater than 10 then msgbox exceeded limited. what's wrong with it? it doesn't show any msgbox when i press sell
but when i put vault smaller than 10. it shows the msgbox...
please help
-
December 31st, 2012, 03:34 PM
#2
Doesn't seem to be any reason why it would do that, unless in your code you had your less than instead of greater than. Post a stripped down version of your database so we can take a look. (remove any data you may not want to share).
Similar Threads
-
By mebaik in forum Microsoft Access Help
Replies: 2
Last Post: September 16th, 2008, 10:41 AM
-
By doffar in forum .NET Development
Replies: 3
Last Post: December 21st, 2004, 11:46 AM
-
By ngaern in forum ASP Development
Replies: 1
Last Post: December 6th, 2004, 08:44 AM
-
By cw410005 in forum Code Bank
Replies: 1
Last Post: November 29th, 2004, 09:26 AM
-
By mpetosky in forum ASP Development
Replies: 1
Last Post: February 13th, 2003, 05:27 PM