Discussion Locked
0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm working on an online form for a client. The user will be entering dollar amounts and the client wants the form to be able to total those dollar amounts up. I'm sure there is a way to do it, but I have no clue how to do this. Does anyone have any advice? Thanks.
1 reply
If you are using a text box on your form it is really very simple. Make sure the Option Explicit is enabled in your vb and (dim sngMoney as single) would be the first order of business.
Then the rest is pretty easy.
sngMoney = val(text1.TEXT + text2.TEXT +_ text3.Text)
The currency option in vb works well also!
This is using text boxes of course on your form.
You can alway make sure and format the way you want it to look also when the client wants it a certain way. Hope this helps
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
1 helpful
3 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies
Discussion Locked
Best Ways to Improve Website Visibility
0 helpful
5 replies