Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DCOUNT function help

Status
Not open for further replies.

sjcoll2

MIS
Joined
Sep 14, 2001
Messages
1
Location
US
I am currently working with the DCOUNT function. Here is the syntax that I am using:
Dcount(&quot;[MAIN TABLE]![SALES ORDER ID]&quot;, &quot;MAIN TABLE&quot;,&quot;[MAIN TABLE]!STATUS='CNL' AND [MAIN TABLE]![CREDIT HOLD]<>'YES'&quot;)

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?
 
Is [Credit Hold] a Yes/No field. If it is, change the criteria to read. Make sure you leave off the quotes.

[MAIN TABLE]![CREDIT HOLD]<>True Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top