Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Syntax to Convert Numeric Dollar Amount Into Text (a2k (9.0.6926) SP-3 Jet 4.0 SP-7)

    I have a numeric amount that I have to append query into a 12 character text field zero filled.

    Example: 7121.66 input has to be stored as 000000712166 output

    What is the query syntax to convert a numeric field to a text field zero filled to left with decimal point?

    Thank, John

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Syntax to Convert Numeric Dollar Amount Into Text (a2k (9.0.6926) SP-

    Say that the numeric amount is in a field named Amount (I'm feeling creative tonight.) An expression that returns the string you want, is:

    Right("00000000000" & [Amount] * 100, 12)

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Syntax to Convert Numeric Dollar Amount Into Text (a2k (9.0.6926) SP-

    Perfect

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •