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

Syntax

Status
Not open for further replies.

Moose222

Technical User
Oct 18, 2001
13
US
In one table called NHSTAT, I need the total of a column called [GCFLAG] that has 'G's.

In the other table called NASTAT, I need to check the column [SHIPDATE] against the Report Date or Date().

Basically, I need to check the Total of [GCFLAG] from NHSTAT and add the the total of [SHIPDATE] from NASTAT < = Date().

As far as I can tell the equation below checks for G's in [GCFLAG] and [SHIPDATE] <= Date() from the NHSTAT table:

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

Can anyone help me writing the equation to have it check for [SHIPDATE] from the NASTAT table and the total from [GCFLAG] from the NHSTAT table.

Thanks in advance for any help.
Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top