Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2014
    Posts
    2

    DLookUp Question

    Hi guys, my name is David



    Click image for larger version. 

Name:	1013681.jpg 
Views:	14 
Size:	8.2 KB 
ID:	17980

    Need help with following matter:

    I have a table (Query) of "Purchases" with some columns of "Purchase ID", "Purchase Date", "Purchased Material", "Amount", "Unit Price".

    In another table (Query) of Material Expenditures with some columns of "Expenditure ID", "Expenditure Date", "Material", "Unit Cost", I want to fill "Unit Cost" column with appropriate Unit Price (from Purchases), where the unit price is the latest for the "Expenditure Date". In short, if I'm using a material at a stated date, I wanna know unit cost of it as a latest purchase price for that date of material expenditure.


    What I've done is that I successfully DLookUp-ed purchase price of the expansed material.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Is Purchases a table or a query? Can you show a jpg of your current database (relationships window)?

    Dlookup info

  3. #3
    Join Date
    Aug 2014
    Posts
    2
    Both of them are queries.
    Unfortunately i can't do that, guess the problem is linked to the website.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Please describe the situation.
    Can you save a PrintScreen to file? If you are working with vba, this would be a desktop application, I think.
    Did you create the database?
    Readers need more info in order to offer advice.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,641
    Did you build query that joins the two tables on the date and material fields?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Quick DLookUp question
    By snipe in forum Programming
    Replies: 5
    Last Post: 02-20-2014, 12:16 PM
  2. dlookup question
    By VicBaker in forum Queries
    Replies: 8
    Last Post: 02-22-2013, 11:12 AM
  3. DLookup question
    By Daryl2106 in forum Access
    Replies: 3
    Last Post: 09-15-2011, 09:41 PM
  4. DLookup question
    By Lockrin in forum Access
    Replies: 2
    Last Post: 07-13-2010, 06:22 AM
  5. Dlookup question
    By nkenney in forum Forms
    Replies: 3
    Last Post: 07-01-2009, 06:36 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