December 30th, 2012, 08:56 PM
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"
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
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).
By mebaik in forum Microsoft Access Help
Last Post: September 16th, 2008, 10:41 AM
By doffar in forum .NET Development
Last Post: December 21st, 2004, 11:46 AM
By ngaern in forum ASP Development
Last Post: December 6th, 2004, 08:44 AM
By cw410005 in forum Code Bank
Last Post: November 29th, 2004, 09:26 AM
By mpetosky in forum ASP Development
Last Post: February 13th, 2003, 05:27 PM