PC Review


Reply
Thread Tools Rate Thread

Adding text boxes

 
 
thusnani@gmail.com
Guest
Posts: n/a
 
      18th May 2006
Im trying to add
txtBox1 + txtBox2 + txtBox3 + txtBox4 + txtBox5 + txtBox6 + txtBox7 +
txtBox8 + txtBox9 + txtBox10 = txtBoxTotal
Now im to write some code so everytime i enter a number into a text box

it will give me a running total in txtBoxTotal. What i'm having
problems with is when the rest are null i get errors and the total
doesnt come up in the bottom.
Please let me know if anyone can help.
Thanks

 
Reply With Quote
 
 
 
 
Rick B
Guest
Posts: n/a
 
      18th May 2006
=Nz([txtBox1],0) +Nz([ txtBox2],0) + Nz([txtBox3],0) + Nz([txtBox4],0)
+Nz([ txtBox5],0) + Nz([txtBox6],0) + Nz([txtBox7],0) + Nz([ txtBox8],0) +
Nz([txtBox9],0) + Nz([txtBox10],0)


--
Rick B



<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Im trying to add
> txtBox1 + txtBox2 + txtBox3 + txtBox4 + txtBox5 + txtBox6 + txtBox7 +
> txtBox8 + txtBox9 + txtBox10 = txtBoxTotal
> Now im to write some code so everytime i enter a number into a text box
>
> it will give me a running total in txtBoxTotal. What i'm having
> problems with is when the rest are null i get errors and the total
> doesnt come up in the bottom.
> Please let me know if anyone can help.
> Thanks
>



 
Reply With Quote
 
Ron2006
Guest
Posts: n/a
 
      18th May 2006
Check the help area on the Nz function

txtboxtotal = nz(txtbox1,0) + nz(txtbox2,0) + etc

 
Reply With Quote
 
=?Utf-8?B?U1NHIFF1YXJ0ZXJNYXN0ZXI=?=
Guest
Posts: n/a
 
      18th May 2006
If I understand this correctly your running total comes up null when you
enter a value say into text box1 and the rest are null. If these entries are
new entries into a table try setting the default value setting to a zero.

"(E-Mail Removed)" wrote:

> Im trying to add
> txtBox1 + txtBox2 + txtBox3 + txtBox4 + txtBox5 + txtBox6 + txtBox7 +
> txtBox8 + txtBox9 + txtBox10 = txtBoxTotal
> Now im to write some code so everytime i enter a number into a text box
>
> it will give me a running total in txtBoxTotal. What i'm having
> problems with is when the rest are null i get errors and the total
> doesnt come up in the bottom.
> Please let me know if anyone can help.
> Thanks
>
>

 
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
Adding text boxes in one? =?Utf-8?B?Z2hvc3Q=?= Microsoft Access Queries 6 6th Feb 2007 05:42 PM
Re: Adding 2 text boxes fredg Microsoft Access Reports 0 6th Dec 2006 06:24 PM
Re: Adding 2 text boxes Duane Hookom Microsoft Access Reports 0 6th Dec 2006 05:24 PM
Adding text boxes Greg Microsoft Access Forms 1 17th Sep 2003 05:29 PM
Adding value of 2 text boxes Antonio Microsoft Access Form Coding 2 23rd Jul 2003 07:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:53 AM.