Results 1 to 4 of 4

Thread: Converting 1000000 to 1,000,000

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 1999
    Location
    Phoenix, az
    Posts
    1,517
    is there a function to convert
    1000000 to 1,000,000 ?

    [Edited by Evan on 11-26-2000 at 07:55 PM]

  2. #2
    Hyperactive Member Steve Stunning's Avatar
    Join Date
    Jul 1999
    Location
    Fairfax, Virginia
    Posts
    314
    Try this. Not sure if this is what you are looking for.

    x = Format("1000000", "#,###,###")
    Steve Stunning

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    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

  4. #4
    Lively Member flint's Avatar
    Join Date
    Oct 2000
    Posts
    67
    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
  •  



Click Here to Expand Forum to Full Width