Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    Aug 2001
    Location
    Anaheim, California, USA
    Posts
    560
    Thanks
    17
    Thanked 2 Times in 2 Posts

    Making a number negative (2000/SR1)

    I am trying to set up a locator system to track inventory. This is probably a simple question but I can't figure it out.

    I have a table to keep track of the transactions. What I want to do is have the user enter whether the item is coming or going, I have a lookup Field and the user can pick Shipping or Receiving. What I want to do is have the next field look at whether it was Shipping or Receiving and when the quantity is entered, make it a negative number (Shipping) or keep it positive (Receiving). Then it is simple to total the quantity in each location. I know how to set up the If statement in the form, attached to AfterUpdate, how do I make the number a negative? Thanks.

  2. #2
    2 Star Lounger
    Join Date
    Jan 2001
    Location
    Goose Creek, South Carolina, USA
    Posts
    108
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: Making a number negative (2000/SR1)

    Quantity Shipped * -1??

  3. #3
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Making a number negative (2000/SR1)

    How about:

    <pre> ABS(Quanity)*-1
    </pre>

    Legare Coleman

  4. #4
    4 Star Lounger
    Join Date
    Aug 2001
    Location
    Anaheim, California, USA
    Posts
    560
    Thanks
    17
    Thanked 2 Times in 2 Posts

    Re: Making a number negative (2000/SR1)

    I knew it was simple but it just wasn't coming to me. Thanks to you and Dick for helping out.

Posting Permissions

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