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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax 1

Status
Not open for further replies.

Moose222

Technical User
Oct 18, 2001
13
US
I am trying to put an equation in the report section where:

In one column [GCFLAG] there are G's and C's.
In another column [SHIPDATE] there are dates of order.
And lastly I have a date of report Date()

I need to count the # of G's in GCFLAG and then compare the order dates to see if they are <= the date of the report.

I need to count the # of G's in GCFLAG and then compare the order dates to see if they are >= the date of the report.

So far here is what I have tried, but it dosen't see to work:

=DCount(&quot;[GCFLAG]&quot;, &quot;NASTAT&quot;, &quot;='G'&quot; And &quot;[SHIPDATE]&quot; <=&quot;DATE()&quot;)

The answers that I seem to be getting are either ALL or 0. It dosen't see to be pulling out the G's.

Thanks for any help.
Jim Nelson
 
Try:
Code:
=DCount(&quot;[GCFLAG]&quot;, &quot;NASTAT&quot;, &quot;[GCFLAG]='G' And [SHIPDATE] <= DATE())
 
Sorry, forgot a quote....
Code:
=DCount(&quot;[GCFLAG]&quot;, &quot;NASTAT&quot;, &quot;[GCFLAG]='G' And [SHIPDATE] <= DATE()&quot;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top