E
Elsie
I've a query created from "Find Unmatched Query Wizard".
In the Click event of VBA code, I want to count the number of receiving no.
in this Query with 2 criterion. One of the criterion involves Receiving date
as shown below :
Me![NoOfReceivingNo] = DCount("[ReceivingNo", "400 : tblIQCInventory Without
Matching OnHold Parts", "[PartNo] = '" & rst2!PartNo & "' AND [ReceivingDate]
= #" & rst2![ReceivingDate] & "#")
But, it always give a "0" result.
If I change the "=" sign after the [ReceivingDate] to >, the result will be
the total number of receiving no. after the Receiving date (and also
inclusive of the receiving no. in the Receiving Date). Why?
Appreciate if someone can help me to resolve this problem
In the Click event of VBA code, I want to count the number of receiving no.
in this Query with 2 criterion. One of the criterion involves Receiving date
as shown below :
Me![NoOfReceivingNo] = DCount("[ReceivingNo", "400 : tblIQCInventory Without
Matching OnHold Parts", "[PartNo] = '" & rst2!PartNo & "' AND [ReceivingDate]
= #" & rst2![ReceivingDate] & "#")
But, it always give a "0" result.
If I change the "=" sign after the [ReceivingDate] to >, the result will be
the total number of receiving no. after the Receiving date (and also
inclusive of the receiving no. in the Receiving Date). Why?
Appreciate if someone can help me to resolve this problem