Dsum Problem

N

NotGood@All

I have a query that counts the number of items for each day of the week using
this code:

xFri: Count(IIf(Weekday([ToDaysDate])=6 And [collected]>24,1,Null))

I’m trying to get a total value of those records using this code:

xSum:DSum("[Collected]", "Passports", "[Collected]>24)

Would someone knowledgeable please help this blind person???
 
R

Rob Parker

Try:
xSum:DSum("[Collected]", "Passports", "Weekday([ToDaysDate])=6 And
[collected]>24")

HTH,

Rob
 
J

John Spencer

Possibly the following:

xSum:DSum("[Collected]", "Passports", "[Collected]>24")

'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DSum in Query 3
HELP with DSUM 3
Understanding 2
DayOfWeekCount 2
Crosstab Query by Week with Dates as Headers 5
Opinion about aggregates 8
DSum Problem 7
count number of specific entries but over multiple fields! 9

Top