Add 5 to data in text box!

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
 
D

Douglas J. Steele

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
 
B

Bob V

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
 
R

raymond

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
 
Top