• split a number

    • This topic has 2 replies, 2 voices, and was last updated 24 years ago.
    Author
    Topic
    #354758

    how can i split a number into two parts
    like take 12.8862 and put
    12 in one textbox and 8862 in another
    i’m using access 2000
    thanks for any help
    JerryC

    Viewing 0 reply threads
    Author
    Replies
    • #521872

      There’s probably a better way, but this will work. [txtMyNumber] contains 12.8882 — Int([txtMyNumber]) will return the integer value “12” and [txtMyNumber]-Int([txtMyNumber]) will return the remainder “0.8882”

    Viewing 0 reply threads
    Reply To: split a number

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: