nested IIF problem
Hi
I have a problem with my to IIF conditions:
[sum([IIF(<qryZoek."TH_TYPE">=0, IIF((<qryZoek."TH_SOORT">>2), [<qryZoek."TD_NPRICE">*<qryZoek."TD_QTYFACT">*<qryZoek."TH_VALCRS">], 0), 0)])]
The error is: ';' expected
I tried many things
But i also have the feeling that (<qryZoek."TH_SOORT">>2) the bigger then('>') operator ain't right. So i changed it to '=' then i get an error about "could not convert variant type(Array) to (String)"!
Thx for the help
I have a problem with my to IIF conditions:
[sum([IIF(<qryZoek."TH_TYPE">=0, IIF((<qryZoek."TH_SOORT">>2), [<qryZoek."TD_NPRICE">*<qryZoek."TD_QTYFACT">*<qryZoek."TH_VALCRS">], 0), 0)])]
The error is: ';' expected
I tried many things
But i also have the feeling that (<qryZoek."TH_SOORT">>2) the bigger then('>') operator ain't right. So i changed it to '=' then i get an error about "could not convert variant type(Array) to (String)"!
Thx for the help
Comments
you are only allowed one set of [] braces per expression
they must be first and last.
thx gordk