Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2009
    Posts
    67

    Unanswered: Please help me whith DlookUp

    I have table (TblInventory) for inventory with these fields (RepDate, ProdName, EndingInv, QtySold, QtyRcvd) Also I have query that will give me the begining inventory for each day which is the EndingInv of the previous date so I set up this DlookUp but it is coming back blank.

    BegInven=DlookUp("[EndingInv]","TblInventory","RepDate=" & [RepDate]-1)

    Please help me.

    Thanks

  2. #2
    Join Date
    May 2005
    Location
    Nevada, USA
    Posts
    2,888
    Provided Answers: 6

  3. #3
    Join Date
    Mar 2007
    Posts
    277
    Try:
    BegInven=DlookUp("[EndingInv]","TblInventory","RepDate=#" & [RepDate]-1&"#")
    RuralGuy (RG for short) aka Allan Bunch MS Access MVP - acXP, ac07, ac10 - WinXP Pro, Win7 Pro
    Please reply to this forum so all may learn.

  4. #4
    Join Date
    Apr 2009
    Posts
    67
    RuralGuy, This worked but so I understand can you explain me # is this because date.

    Thanks

  5. #5
    Join Date
    May 2005
    Location
    Nevada, USA
    Posts
    2,888
    Provided Answers: 6
    Did you review the link I gave you?
    Paul

  6. #6
    Join Date
    Apr 2009
    Posts
    67
    Yes now I understood Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •