Results 1 to 5 of 5
  1. #1
    ktg is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2014
    Posts
    5

    How to make negative values and positive values affect queries differenly.


    I have created an Access 2010 Database for tracking inventory. As parts move to each location, quantities automatically subtract from the previous location. I now realized that some parts are destroyed. The problem is the if I simply enter a negative value to indicated that a part was destroyed at one location, it appears as a positive value in the previous location. Is there a way to make negative values not affect a specific query?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    I would say, if the value is negative -dont run that 'subtracting' query.
    otherwise run both.

  3. #3
    ktg is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2014
    Posts
    5
    I need to run the subtracting query because of the way that I have set up of the system.

    Is there a way to make a query not recognize negative values?

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by ktg View Post
    ...Is there a way to make a query not recognize negative values?
    Queries retrieve data. You could add criteria to the query that would be included in a WHERE clause

    Something like
    WHERE [tblName].[FieldName] >0

  5. #5
    ktg is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2014
    Posts
    5
    Thanks, I got it!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Comparing positive to negative values.
    By rubberducky in forum Access
    Replies: 1
    Last Post: 01-20-2014, 04:44 PM
  2. Replies: 2
    Last Post: 06-05-2013, 09:37 AM
  3. Replies: 7
    Last Post: 09-16-2011, 01:39 PM
  4. Replies: 2
    Last Post: 01-13-2010, 05:29 AM
  5. Convert Negative Values to Positive
    By creativefusion in forum Queries
    Replies: 1
    Last Post: 10-21-2009, 02:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums