A
AutoMagic
I created a report using a crosstab query which has up to 5 different
categories to enter hours. On the report I show all 5 categories.
The problem is not all categories have data so when I open the report
I get the following error:
The Microsoft jet engine does not recognize " as a valid field or
Expression
If I delete all the fields that have no data the report runs OK.
I've tried entering the following formulas in the Control Source field
to fix the problem but no go:
Category1 - (no formula) this works OK if field has data but causes
"jet engine" error above if no data
=NZ([Category1],0) - Displays #error on report if data or no data
=IIf(IsNumeric([Category1]),[Category1],0) - displays 0 whether field
has data or not
=IIf(IsError([Category1]),0,[Category1]) - displays 0 whether field
has data or not
It looks like the only way to fix this is to add some data in all
categories but there must be a fix for this. Does anyone know of a
formula that should work for this report?
categories to enter hours. On the report I show all 5 categories.
The problem is not all categories have data so when I open the report
I get the following error:
The Microsoft jet engine does not recognize " as a valid field or
Expression
If I delete all the fields that have no data the report runs OK.
I've tried entering the following formulas in the Control Source field
to fix the problem but no go:
Category1 - (no formula) this works OK if field has data but causes
"jet engine" error above if no data
=NZ([Category1],0) - Displays #error on report if data or no data
=IIf(IsNumeric([Category1]),[Category1],0) - displays 0 whether field
has data or not
=IIf(IsError([Category1]),0,[Category1]) - displays 0 whether field
has data or not
It looks like the only way to fix this is to add some data in all
categories but there must be a fix for this. Does anyone know of a
formula that should work for this report?