Using DLookUp and Count in Expression Builder

haydenal

Registered User.
Local time
Today, 03:28
Joined
Jan 8, 2009
Messages
52
I am trying to count the number of occurrences of particular values for a specific year. I was thinking of trying something such as:

2008: Count([TYPE]) WHERE [YEAR] = 2008

Obviously, WHERE isn't available to me. I've been trying to do this with DLookUp but I just can't seem to get it right. I'm using:

2008: Count(DLookUp("[TYPE]","TABLE","[YEAR] = 2008"))

This seems to get me close but when I try to do it with 2007, the values returned are the same as 2008.

Anyone have any tips on doing this?
 
Thanks Bob,

That works perfectly.

Andy
 

Users who are viewing this thread

Back
Top Bottom