Results 1 to 3 of 3
  1. #1
    Saniphor is offline Novice
    Windows Vista Access 2007
    Join Date
    Mar 2011
    Posts
    3

    Pulling cost for container by matching container number to the part number

    I am hopeful that someone here would be able to help me. I am rather new to Access.

    I have two tables the product file table and the packaging component table. Pnum (product number is a primary key in both tables) ComponentPNum is also a primary key in the packaging component table.



    What I am trying to do is look up the cost of DrumNum by matching the DrumNum to the Pnum in the same table.

    SELECT PRODFIL2.PNAME1 AS [Product Name], PRODFIL2.PNUM AS [Product #], PRODFIL2.UP AS [Packaging Unit], PRODFIL2.DRMNUM AS [Container #], PRODFIL2_PackagingComponent.ComponentPNUM AS [Lid #], PRODFIL2.lcost AS [Container Cost]FROM PRODFIL2 INNER JOIN PRODFIL2_PackagingComponent ON PRODFIL2.[PNUM] = PRODFIL2_PackagingComponent.[PNUM]WHERE (([qryPackagingCost]![Container #]=[PRODFIL2]![PNUM]));

  2. #2
    Rixxe is offline Blessed Bear
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Location
    London (Essex ... yep!)
    Posts
    184

  3. #3
    Saniphor is offline Novice
    Windows Vista Access 2007
    Join Date
    Mar 2011
    Posts
    3
    Thank you for your help Rixxe! That got it

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

Similar Threads

  1. Adding Part Number on demand that is not in table
    By patrickwelch in forum Programming
    Replies: 4
    Last Post: 03-21-2011, 07:53 PM
  2. pulling text values into FK number column
    By REBBROWN in forum Database Design
    Replies: 2
    Last Post: 08-30-2010, 05:04 PM
  3. Making New Record Number Next Numerical Number
    By jhillbrown in forum Access
    Replies: 1
    Last Post: 03-10-2010, 11:06 AM
  4. Part Number Lookup
    By jacobbiljo in forum Queries
    Replies: 1
    Last Post: 11-12-2009, 09:22 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