Results 1 to 8 of 8
  1. #1
    matt4003 is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2009
    Posts
    10

    Look up price

    Hello,



    I am not totally new to access, but lack some key skills.

    Basically, I have a database that tracks consignment sales. I have a limited number of items (called parts), I have a consumption table and a price/spec table. The consumption table has date of consumption, part name and a variety of other informations (I am not sure is necessary for this problem). The spec/price table has each part and prices with a validity period. For example:

    Part | Price | Start Date | End Date|
    "A" , $50, 10/01/09, 12/31/09
    "A", $55, 01/01/10, 06/30/10
    "B", $40, 10/01/09, 12/31/09
    "B", $35, 01/01/10, 06/30/10

    I would like a query that looks at the part, the consumption date and picks the price based on the spec/price table Start Date and End Date.

    Any ideas?? Do I need to post more information?

    Thanks so much!

    Cheers,
    Matt
    Last edited by matt4003; 12-28-2009 at 02:12 PM. Reason: Solved

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Have you tried using the query builder yet?

  3. #3
    matt4003 is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2009
    Posts
    10
    Hello RuralGuy,

    Yes, but really struggled to get it to work. I seem to get the prices added together for each product. So, it will find one consumption, but add the two prices together in the results. Does that make sense? It won't find the right time range valid price.

    Thanks,
    Matt

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You have basically three criteria:
    PartNumber
    Date() => StartDate AND Date() =< EndDate

  5. #5
    matt4003 is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2009
    Posts
    10
    Hello Again RuralGuy,

    This worked great! Can't believe I missed it.

    Thanks for your help!

    Cheers,
    Matt

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    That's great! Glad I could help. Are you ready to follow the link in my sig and mark this thread as Solved?

  7. #7
    matt4003 is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2009
    Posts
    10
    Yes, done. Thanks again!

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows XP Access 2002
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You're very welcome and thanks for marking the thread as Solved.

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

Similar Threads

  1. Replies: 1
    Last Post: 10-06-2009, 02:00 AM
  2. Multiple Price Columns
    By kmwhitt in forum Access
    Replies: 0
    Last Post: 04-04-2009, 09:48 PM

Tags for this Thread

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