I am currently working with the DCOUNT function. Here is the syntax that I am using:
Dcount("[MAIN TABLE]![SALES ORDER ID]", "MAIN TABLE","[MAIN TABLE]!STATUS='CNL' AND [MAIN TABLE]![CREDIT HOLD]<>'YES'"
If I take the second criteria out ([credit hold]<>'yes', the function works properly. However, if the second criteria is in the function a #error is returned.
Any suggestions?
Dcount("[MAIN TABLE]![SALES ORDER ID]", "MAIN TABLE","[MAIN TABLE]!STATUS='CNL' AND [MAIN TABLE]![CREDIT HOLD]<>'YES'"
If I take the second criteria out ([credit hold]<>'yes', the function works properly. However, if the second criteria is in the function a #error is returned.
Any suggestions?