G
Gsurfdude
Hello,
On an report, I get an "#Error" in the text box control who's Control Source
is set to this expression.
=Sum(IIf([qry_449_Report]![ROUTE_TYPE]=1 And
([qry_449_Report]![DIV_HWY_SURF_TYPE]='G' Or
[qry_449_Report]![UDIV_HWY_SURFACE_TYPE]='G' Or
[qry_449_Report]![DIV_HWY_SURF_TYPE]='H' Or
[qry_449_Report]![UDIV_HWY_SURFACE_TYPE]='H' Or
[qry_449_Report]![DIV_HWY_SURF_TYPE]='I' Or
[qry_449_Report]![UDIV_HWY_SURFACE_TYPE]='I'),[qry_449_Report]![SECTION_LENGTH],0))
But, I do not get this error with this one (identical to above except
[qry_449_Report]![DIV_HWY_SURF_TYPE]='I' Or
[qry_449_Report]![UDIV_HWY_SURFACE_TYPE]='I') is not in the expression E.G.
This works...
=Sum(IIf([qry_449_Report]![ROUTE_TYPE]=1 And
([qry_449_Report]![DIV_HWY_SURF_TYPE]='G' Or
[qry_449_Report]![UDIV_HWY_SURFACE_TYPE]='G' Or
[qry_449_Report]![DIV_HWY_SURF_TYPE]='H' Or
[qry_449_Report]![UDIV_HWY_SURFACE_TYPE]='H'),[qry_449_Report]![SECTION_LENGTH],0))
I am a little stumped why even tho syntax looks OK in the one I get the error
On an report, I get an "#Error" in the text box control who's Control Source
is set to this expression.
=Sum(IIf([qry_449_Report]![ROUTE_TYPE]=1 And
([qry_449_Report]![DIV_HWY_SURF_TYPE]='G' Or
[qry_449_Report]![UDIV_HWY_SURFACE_TYPE]='G' Or
[qry_449_Report]![DIV_HWY_SURF_TYPE]='H' Or
[qry_449_Report]![UDIV_HWY_SURFACE_TYPE]='H' Or
[qry_449_Report]![DIV_HWY_SURF_TYPE]='I' Or
[qry_449_Report]![UDIV_HWY_SURFACE_TYPE]='I'),[qry_449_Report]![SECTION_LENGTH],0))
But, I do not get this error with this one (identical to above except
[qry_449_Report]![DIV_HWY_SURF_TYPE]='I' Or
[qry_449_Report]![UDIV_HWY_SURFACE_TYPE]='I') is not in the expression E.G.
This works...
=Sum(IIf([qry_449_Report]![ROUTE_TYPE]=1 And
([qry_449_Report]![DIV_HWY_SURF_TYPE]='G' Or
[qry_449_Report]![UDIV_HWY_SURFACE_TYPE]='G' Or
[qry_449_Report]![DIV_HWY_SURF_TYPE]='H' Or
[qry_449_Report]![UDIV_HWY_SURFACE_TYPE]='H'),[qry_449_Report]![SECTION_LENGTH],0))
I am a little stumped why even tho syntax looks OK in the one I get the error