PC Review


Reply
Thread Tools Rate Thread

Add 5 to data in text box!

 
 
Bob V
Guest
Posts: n/a
 
      15th Jul 2007


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


 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      15th Jul 2007
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
http://I.Am/DougSteele
(no private e-mails, please)


"Bob V" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
>
> 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
>



 
Reply With Quote
 
Bob V
Guest
Posts: n/a
 
      16th Jul 2007
Brilliant Douglas, Top one worked ) .....Thanks Bob V

"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
news:(E-Mail Removed)...
> 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
> http://I.Am/DougSteele
> (no private e-mails, please)
>
>
> "Bob V" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>
>>
>> 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
>>

>
>



 
Reply With Quote
 
raymond
Guest
Posts: n/a
 
      17th Jul 2007

"Bob V" <(E-Mail Removed)> a écrit dans le message de
news:(E-Mail Removed)...
> Brilliant Douglas, Top one worked ) .....Thanks Bob V
>
> "Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message
> news:(E-Mail Removed)...
>> 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
>> http://I.Am/DougSteele
>> (no private e-mails, please)
>>
>>
>> "Bob V" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>>
>>>
>>> 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


>>

>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I sort text data by reference to text data in another column? mel1936 Microsoft Excel Misc 1 22nd Nov 2009 07:29 PM
Data in a text box depending on the type of data choosing "text" Fred's Microsoft Access 2 12th Dec 2007 05:03 PM
Copy the text data from the column of an excel sheet into a text file . Sharbat Microsoft Excel Misc 2 21st Mar 2004 12:28 PM
Changing a text boxes value (from code) of a data bound text box does not work Joshua Ellul Microsoft ADO .NET 2 17th Oct 2003 01:03 AM
Changing a text boxes value (from code) of a data bound text box does not work Joshua Ellul Microsoft Dot NET 0 15th Oct 2003 06:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:22 PM.