Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

using buttons to change numerical values within forms

Discussion in 'Information Technology' started by Syke27, Jul 28, 2006.

  1. Syke27

    Syke27
    Expand Collapse
    Guest

    hello, i am currently attempting to add 2 buttons to a form which i have
    created. within the form i have the field....Number in Stock....and i want 2
    buttons to change the value of this field.....
    the first button needs to add 1 to the value already within the field.
    the second button needs to subtract 1 from the value already within the field.

    my msn addy is Syke_27@hotmail.co.uk

    can someone plz help....

    thank you in advance, j
     
  2. Loading...


  3. Ofer Cohen

    Ofer Cohen
    Expand Collapse
    Guest

    In the first button OnClick event you can write the code

    Me.[Stock Field Name] = Me.[Stock Field Name] + 1

    And in the other
    Me.[Stock Field Name] = Me.[Stock Field Name] - 1

    --
    Good Luck
    BS"D


    "Syke27" wrote:

    > hello, i am currently attempting to add 2 buttons to a form which i have
    > created. within the form i have the field....Number in Stock....and i want 2
    > buttons to change the value of this field.....
    > the first button needs to add 1 to the value already within the field.
    > the second button needs to subtract 1 from the value already within the field.
    >
    > my msn addy is Syke_27@hotmail.co.uk
    >
    > can someone plz help....
    >
    > thank you in advance, j
     

Share This Page