B
Bill
I have a query to calculate commissions that has multiple
IIF's. It's going to have many more IIF's and I was
wondering if there was a way to use a word processor or
better yet a spreadsheet where I can use separate lines
and indents to build the query and then copy/paste it into
Access?
Are there standard conventions for breaking lines and/or
indenting lines? (i.e. if the answer to an IIF is false
will it look to the next indented line or if true will it
look to the next line that begins at the same space as the
IIF begins)
Here's a piece of it:
comm_zb: IIf([desc3]=9,0,IIf([quantity] Mod 100<>0,0,IIf
([gross]>=2500,(+[gross]*0.009)+22,IIf(+[gross]>=800,(+
[gross]*0.013)+12,IIf(+[gross]>=100,(+[gross]*0.013)
+6.4,0)))))
IIF's. It's going to have many more IIF's and I was
wondering if there was a way to use a word processor or
better yet a spreadsheet where I can use separate lines
and indents to build the query and then copy/paste it into
Access?
Are there standard conventions for breaking lines and/or
indenting lines? (i.e. if the answer to an IIF is false
will it look to the next indented line or if true will it
look to the next line that begins at the same space as the
IIF begins)
Here's a piece of it:
comm_zb: IIf([desc3]=9,0,IIf([quantity] Mod 100<>0,0,IIf
([gross]>=2500,(+[gross]*0.009)+22,IIf(+[gross]>=800,(+
[gross]*0.013)+12,IIf(+[gross]>=100,(+[gross]*0.013)
+6.4,0)))))