|
-
Nov 26th, 2000, 07:51 PM
#1
Thread Starter
Frenzied Member
is there a function to convert
1000000 to 1,000,000 ?
[Edited by Evan on 11-26-2000 at 07:55 PM]
-
Nov 26th, 2000, 07:57 PM
#2
Hyperactive Member
Try this. Not sure if this is what you are looking for.
x = Format("1000000", "#,###,###")
-
Nov 26th, 2000, 07:58 PM
#3
_______
<?>
MsgBox Format(1000000, "0,000,000")
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Nov 27th, 2000, 03:02 AM
#4
Lively Member
If 1000000 is entered into a text field, on the LostFocus event of the text field enter this
Code:
Public Sub txtUnits1_LostFocus()
txtUnits1 = Format(txtUnits1, "#,##0")
End Sub
In general, if used another way I would take HeSaidJoe's advice with this alteration:
Format("1000000", "#,##0")
If it's money
Format("1000000", "$#,##0")
Hope this helps!
Flint
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|