access form question

Discussion in 'OT Technology' started by toraji, Apr 6, 2004.

  1. toraji

    toraji New Member

    Joined:
    Jan 19, 2004
    Messages:
    6,790
    Likes Received:
    0
    Location:
    車の中
    i'm making a form, and trying to keep a total of amount of products I test in a day. is there a a object that I can make a number field with the up/down arrow that will increment it up or down?
     
  2. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    Have to do it in VB. Make your number field as normal, lets say called TotalProductsTested. Then create two command buttons with the image up and image down. Now in Up arrow On Click Event, write this code as an Event Procedure:

    TotalProductsTested = TotalProductsTested + 1

    And the down arrow On Click Event, write this code:

    TotalProductsTested = TotalProductsTested - 1

    That's all there is to it.
     

Share This Page