Add 5 to data in text box!

  • Thread starter Thread starter Bob V
  • Start date Start date
B

Bob V

What would I need for [On Click] in my Control Button that would add 5 to
[tbAdditionChargeAmount] each time I clicked it?
Thanks for any Help...........Bob
 
Private Sub MyCommandButton_Click()

Me!tbAdditionChargeAmount = Me!tbAdditionChargeAmount + 5

End Sub

If that doesn't work, try:

Private Sub MyCommandButton_Click()

Me!tbAdditionChargeAmount = _
Val(Me!tbAdditionChargeAmount) + 5

End Sub
 
Brilliant Douglas, Top one worked :)) .....Thanks Bob V

Douglas J. Steele said:
Private Sub MyCommandButton_Click()

Me!tbAdditionChargeAmount = Me!tbAdditionChargeAmount + 5

End Sub

If that doesn't work, try:

Private Sub MyCommandButton_Click()

Me!tbAdditionChargeAmount = _
Val(Me!tbAdditionChargeAmount) + 5

End Sub


--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Bob V said:
What would I need for [On Click] in my Control Button that would add 5 to
[tbAdditionChargeAmount] each time I clicked it?
Thanks for any Help...........Bob
 
Bob V said:
Brilliant Douglas, Top one worked :)) .....Thanks Bob V

Douglas J. Steele said:
Private Sub MyCommandButton_Click()

Me!tbAdditionChargeAmount = Me!tbAdditionChargeAmount + 5

End Sub

If that doesn't work, try:

Private Sub MyCommandButton_Click()

Me!tbAdditionChargeAmount = _
Val(Me!tbAdditionChargeAmount) + 5

End Sub


--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Bob V said:
What would I need for [On Click] in my Control Button that would add 5
to [tbAdditionChargeAmount] each time I clicked it?
Thanks for any Help...........Bob
excuser moi je ne comprend pas votre langue
 

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