Dsum with multiple criteria? (1 Viewer)

vidus

Confused User
Local time
Today, 15:37
Joined
Jun 21, 2009
Messages
117
How can I achieve this? I want to:

Sum the [Value] field, where [Active] field is True, OR where the [Invoiced] field is True. Here is my code so far, which is returning #Error

=DSum("[Value]","Jobs","[Active]=1" AND "[Invoiced]=1")

It works fine for one criteria, such as:
=DSum("[Value]","Jobs","[Active]=1")

But it wont work with the AND... can anyone tell me where this went wrong?
 

namliam

The Mailman - AWF VIP
Local time
Tomorrow, 00:37
Joined
Aug 11, 2003
Messages
11,695
Have you tried
=DSum("[Value]","Jobs","[Active]=1 AND [Invoiced]=1")
 

Users who are viewing this thread

Top Bottom