Thank. But it doesn't work. This works:
SELECT WorkVolume_tbl.Associate, [WorkVolume_tbl]![Custom
Print]+[WorkVolume_tbl]![Direct] AS Expr1
FROM WorkVolume_tbl;
This doesn't work:
SELECT WorkVolume_tbl.Associate, [WorkVolume_tbl]![Custom
Print]+[WorkVolume_tbl]![Direct]+[WorkVolume_tbl]![Order Entry-
Mailbox]+[WorkVolume_tbl]![Order Entry-Fax] AS Expr1
FROM WorkVolume_tbl;
Why can't I add more Fields to the expression?
> What about this --
> SELECT WorkVolume_tbl.Associate, [WorkVolume_tbl]![Custom
[quoted text clipped - 19 lines]
> > > table with a TotalField which contains the aggregate of each field2 to field4
> > > and it's grouped by field1.
KARL DEWEY - 21 Aug 2006 23:33 GMT
Try this --
SELECT WorkVolume_tbl.Associate, [Custom Print]+[Direct]+[Order Entry-
Mailbox]+[Order Entry-Fax] AS Expr1, [Order Entry- Mailbox]+[Order Entry-Fax]
AS Expr2
FROM WorkVolume_tbl;
> Thank. But it doesn't work. This works:
> SELECT WorkVolume_tbl.Associate, [WorkVolume_tbl]![Custom
[quoted text clipped - 32 lines]
> > > > table with a TotalField which contains the aggregate of each field2 to field4
> > > > and it's grouped by field1.
John Spencer - 22 Aug 2006 13:32 GMT
Try using the NZ function to force a value for the fields if they are null.
Nulls propagate, so if any field in your calculation is NULL (blank) then
the result of the calculation is null.
SELECT WorkVolume_tbl.Associate
, NZ([WorkVolume_tbl].[Custom Print],0)+
NZ([WorkVolume_tbl].[Direct],0)+
NZ([WorkVolume_tbl].[Order Entry- Mailbox],0)+
NZ([WorkVolume_tbl].[Order Entry-Fax],0) AS Expr1
FROM WorkVolume_tbl
By the way, is there a space between the "-" and "Mailbox" in the field
"Order Entry- Mailbox"? If not, you will need to fix the proposed SQL
statement above.
> Thank. But it doesn't work. This works:
> SELECT WorkVolume_tbl.Associate, [WorkVolume_tbl]![Custom
[quoted text clipped - 38 lines]
>> > > to field4
>> > > and it's grouped by field1.
ty - 22 Aug 2006 19:20 GMT
Thanks. Thant works.
> Try using the NZ function to force a value for the fields if they are null.
> Nulls propagate, so if any field in your calculation is NULL (blank) then
[quoted text clipped - 53 lines]
> >> > > to field4
> >> > > and it's grouped by field1.