![]() |
|
|
||||||||
| Site Links |
| Consulting |
| Knowledge Base |
| Training |
| Forum |
| Articles |
| Resources |
| Products |
| Cool Tools |
| Contact |
| About Us |
| Go to Page... |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
|
Sum text box values
This seems so simple I'm almost embarressed to ask
but:I have a form where I want a text box to display the total of the textbox values on the form. VBA:
VBA tags courtesy of www.thecodenet.com
So i must be in the right area??? As an add on I would like the total to be rounded to be the sum of textbox1 and textbox2, divided by 1000 and dsiplayed to 2 figures eg 1234 + 3456 = 4.69 |
|
Local Time: 07:38 AM
Local Date: 05-20-2013 Location:
|
|
|
|
#2 |
|
Distinguished Lord of VBAX
|
VBA:
VBA tags courtesy of www.thecodenet.com
|
|
Local Time: 08:38 AM
Local Date: 05-20-2013 Location:
|
|
|
|
#3 |
|
|
sub or function not defined
XLD
If I just copy your code: VBA:
VBA tags courtesy of www.thecodenet.com
over my line I get an error: "Sub or function not defined." |
|
Local Time: 07:38 AM
Local Date: 05-20-2013 Location:
|
|
|
|
#4 |
|
|
Look at the first CDbl function call (two "l"s). It's a typo.
Glen |
|
Local Time: 08:38 AM
Local Date: 05-20-2013 Location:
|
|
|
|
#5 | |||||||||||||||||||||||
|
Distinguished Lord of VBAX
|
Sorry, I changed the Val to CDbl just before posting (Because of an issue with another post a few days ago), but messed it. It should be VBA:
VBA tags courtesy of www.thecodenet.com
|
|||||||||||||||||||||||
|
Local Time: 08:38 AM
Local Date: 05-20-2013 Location:
|
|
|
|
#6 |
|
|
Cheers
As usual thanx for the help |
|
Local Time: 07:38 AM
Local Date: 05-20-2013 Location:
|
|
![]() |
| Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|


