
Originally Posted by
June7
Criteria argument must be within quote marks, same as field and table arguments. The intrinsic Access functions should still evaluate.
Try:
MsgBox Nz(DSum("DOM_REGULAR_POUCH", "Stock_Utilization", "Format([Out_date],'yyyymm') = Format(Date(),'yyyymm')")
If you want user specified criteria, enter date into textbox on form and concatenate reference to textbox.
MsgBox Nz(DSum("DOM_REGULAR_POUCH", "Stock_Utilization", "Format([Out_date],'yyyymm') = '" & Format(Me.tbxDate,"yyyymm") & "'")