alktrigger
Aimless Extraordinaire
- Local time
- Today, 06:54
- Joined
- Jun 9, 2009
- Messages
- 124
I am creating a percent line in my code in an effort to summarize data in a report. I'm quite rusty on my VB, and I just can't remember how to limit the length of numbers
my code is as follows:
the code works flawlessly minus the fact that it outputs to 13 decimal places. What is the command to limit length to one decimal?
my code is as follows:
Code:
lblPerct.Caption = Str((lblSending.Caption / lblTotal.Caption) * 100) & "%"
the code works flawlessly minus the fact that it outputs to 13 decimal places. What is the command to limit length to one decimal?