Results 1 to 7 of 7
  1. #1
    rochy81 is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2008
    Posts
    22

    Comparing Part Quantities According to Dates

    Hello,



    Going to explain this the best I can.

    I have a certain amount of parts that come into our warehouse and is then shipped to other facilities. I want to compare the incoming quantity with the out going quantity according to dates. For example:

    1/1/09: Incoming part #1111 - 2000 Pcs
    1/1/09: Incoming part #2222 - 5000 Pcs

    1/10/09: Outgoing part #1111 - 500 pcs
    1/12/09: Outgoing part #2222 - 1000 pcs

    So I want to list them in a report side by side according to date so compare what comes in and what goes out. Of course we have many more parts and quantities that come and go.

    Because of this I want to do a search, for example, I want to search Part number 1111. This then will display all of the incoming and outgoing quantities of parts 1111 for a certain period of time side by side by date it either came in or left.

    Please let me know if this doesn't make sense.

    Any advice on how to do this?
    Thank you!

  2. #2
    rochy81 is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2008
    Posts
    22
    An example of what I need is in this screenshot.

  3. #3
    CraigDolphin is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Apr 2009
    Location
    Custer, WA, USA
    Posts
    125
    1. Build a parameter query showing your inwards events using a criteria to limit it to just the part you are interested in.

    2. Build a second parameter query showing the outward events, also restricted to the part you are interested in.

    3. Build a third query that lists all dates when any transaction occured involving the part number you are interested in.

    4. Finally, build a query that returns all the dates from 3 (using an outer join), inwards event data from 1, and outwards event data from 2.

    Base your report on 4.

    You can either use an undefined parameter (causes a prompt to appear for the user to type in the part number), or else create a form with a combo box containing a part number, and have the user select a part from that combo and use a reference to the form/combo as your parameter instead.

  4. #4
    rochy81 is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2008
    Posts
    22
    Thanks!
    Gonna play around with that.

  5. #5
    rochy81 is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2008
    Posts
    22
    I've been playing around with this the whole time and I cant get it to work.

    Even getting a 'Type mismatch in expression' error.

    Please take a look at the database below.

    Thanks for the help!

  6. #6
    rochy81 is offline Novice
    Windows Vista Access 2007
    Join Date
    Sep 2008
    Posts
    22
    Ah, nevermind, got it to work.

    Thanks for your help!

  7. #7
    CraigDolphin is offline Competent Performer
    Windows XP Access 2000
    Join Date
    Apr 2009
    Location
    Custer, WA, USA
    Posts
    125
    Glad you got it sorted. I could not have opened your db anyways as I do not have AC2007

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

Similar Threads

  1. Help On Comparing Quantity in Tables
    By rochy81 in forum Access
    Replies: 2
    Last Post: 05-29-2009, 10:20 AM
  2. Comparing between fields
    By Dashin in forum Queries
    Replies: 0
    Last Post: 02-13-2009, 08:38 AM
  3. organizing serial numbers and quantities
    By Diomeneus in forum Access
    Replies: 0
    Last Post: 11-14-2008, 03:17 PM
  4. Search any field and part thereof
    By Johan in forum Programming
    Replies: 0
    Last Post: 09-08-2008, 02:18 AM
  5. Multiple Part Number Look=up
    By nywi6100 in forum Reports
    Replies: 0
    Last Post: 09-27-2006, 11:38 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