using buttons to change numerical values within forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

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 (e-mail address removed)

can someone plz help....

thank you in advance, j
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top