Hi folks,
I'm having some problem here in which, I tried to DSum the underlying query through criteria set in the subform, but it keeps giving me a message that the database cannot find the specified subform. I check the name couple times and it's been correct.
Here's my code:
varTotal= DSum("Price", "qryOrder","[Order Date]<= # " & Forms![OrderSubform]![Order Date] & " #"
If I use me.[order date] instead of the full name of the subform as above, it says the object doesn't contain automation.
Can anybody help me with this?
Thanks ahead,
Tin Tin
I'm having some problem here in which, I tried to DSum the underlying query through criteria set in the subform, but it keeps giving me a message that the database cannot find the specified subform. I check the name couple times and it's been correct.
Here's my code:
varTotal= DSum("Price", "qryOrder","[Order Date]<= # " & Forms![OrderSubform]![Order Date] & " #"
If I use me.[order date] instead of the full name of the subform as above, it says the object doesn't contain automation.
Can anybody help me with this?
Thanks ahead,
Tin Tin