Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Aug 2001
    Location
    Cape Town, South Africa, South Africa
    Posts
    399
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Managing negative values trailing - (Access 2003)

    I have a table with a text field with the value 2754 and 2854-. How do I get it to a value of 2754 and -2854. I want to move the - to the front and change the field from text to value of create a new field for the value of the text field. I've tried IIF and left, len and right but can't seem to manage

    TIA

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

    Re: Managing negative values trailing - (Access 2003)

    Try
    <code>
    IIf(Right([Field],1)="-","-" & Left([Field],Len([Field])-1),[Field])</code>

  3. #3
    3 Star Lounger
    Join Date
    Aug 2001
    Location
    Cape Town, South Africa, South Africa
    Posts
    399
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Managing negative values trailing - (Access 20

    I've tried something similar but yours worked like a charm

    Thanks

Posting Permissions

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