I think you'd get more responses you you gave more info on what you're trying to accomplish. Maybe jdraw understands, but I don't.
If you're getting a syntax error, it looks like you have quotes within quotes. Maybe they need changed to apostrophes? Don't know since I don't understand the big picture.
"<=Nz(DLookUp('[SumOfQuantity]','[TotalInStock]',' ItemID = ' & [ItemID] & 'And [Status ID] = ' & [Status ID]),0)"