#1
  1. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Jul 2012
    Posts
    18
    Rep Power
    0

    Unhappy 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
  2. #2
  3. Contributing User
    ASP Adventurer (500 - 999 posts)

    Join Date
    Jun 2011
    Location
    South Jersey
    Posts
    544
    Rep Power
    59
    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

  1. Newbie Needs Help!
    By mebaik in forum Microsoft Access Help
    Replies: 2
    Last Post: September 16th, 2008, 11:41 AM
  2. Newbie Help
    By doffar in forum .NET Development
    Replies: 3
    Last Post: December 21st, 2004, 12:46 PM
  3. ASP newbie needs some help!
    By ngaern in forum ASP Development
    Replies: 1
    Last Post: December 6th, 2004, 09:44 AM
  4. newbie need help!!
    By cw410005 in forum Code Bank
    Replies: 1
    Last Post: November 29th, 2004, 10:26 AM
  5. Simple Newbie question (VERY NEWBIE)
    By mpetosky in forum ASP Development
    Replies: 1
    Last Post: February 13th, 2003, 06:27 PM

IMN logo majestic logo threadwatch logo seochat tools logo