Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,557 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,904 people online right now. Registration is fast and FREE... Join Now!




percentages

 
Reply to this topicStart new topic

percentages, percentage topic

lizzie
11 Apr, 2008 - 01:50 PM
Post #1

New D.I.C Head
*

Joined: 11 Apr, 2008
Posts: 2

what would be a basic percentage code for finding out three or four different text box values together? if ne1 has an idea please rite bk thanks

lizzie biggrin.gif

User is offlineProfile CardPM
+Quote Post

Shouvik
RE: Percentages
12 Apr, 2008 - 01:12 AM
Post #2

New D.I.C Head
*

Joined: 7 Apr, 2008
Posts: 6


My Contributions
QUOTE(lizzie @ 11 Apr, 2008 - 02:50 PM) *

finding out three or four different text box values together?


can you explain this more clearly?
User is offlineProfile CardPM
+Quote Post

lizzie
RE: Percentages
12 Apr, 2008 - 02:09 AM
Post #3

New D.I.C Head
*

Joined: 11 Apr, 2008
Posts: 2

QUOTE(Shouvik @ 12 Apr, 2008 - 02:12 AM) *

QUOTE(lizzie @ 11 Apr, 2008 - 02:50 PM) *

finding out three or four different text box values together?


can you explain this more clearly?



hi am making a loan application and most of the questions have a value which are added together then i have to determine wether they have enough percentage to continue with the application. so its a basic code to find out a percentage of a number sori if i confused you.
User is offlineProfile CardPM
+Quote Post

Shouvik
RE: Percentages
13 Apr, 2008 - 06:25 AM
Post #4

New D.I.C Head
*

Joined: 7 Apr, 2008
Posts: 6


My Contributions
ok...you can try this code.
it adds values from three textboxes and then computes the percentage.

check to see if this helps you or not...

CODE

Dim sum As Integer, max_value As Long, percentage As Long

max_value = 10000

sum = Val(Text1.Text) + Val(Text2.Text) + Val(Text3.Text)
percentage = sum / max_value * 100

MsgBox "Percentage is -->" & Str(percentage)


regards
Shouvik
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 11:20PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month