View Full Version : Please help me whith DlookUp


hmho
05-22-2009, 05:14 PM
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

http://www.dbforums.com/db_images_v3/images/buttons/edit.gif (http://www.dbforums.com/editpost.php?do=editpost&p=6401068)

pbaldy
05-22-2009, 05:28 PM
Here's a good reference on the syntax required:

http://www.mvps.org/access/general/gen0018.htm

Personally I would not try to store the ending inventory.