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




Comments

  • gordkgordk St.Catherines On. Canada.
    edited 11:15PM
    in a memoview
    you are only allowed one set of [] braces per expression
    they must be first and last.
  • edited 11:15PM
    ok it works

    thx gordk

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.