Dlookup for finf stock Position

=DLookup("current_stock", "tblStock", "[Stock_Id] = 1") it works for Stock-ID=1 in the main form
=DLookup("current_stock", "tblStock", "Stock_Id = & CLng("0" & Replace([Forms]![SK Enterprice]![TblInvoiceDetail Subform].[Form]![ITEMID] , "P", ""))
getting compie error in "0"
 

Users who are viewing this thread

Back
Top Bottom