Hi there everyone,
I've got records that are orders. Each order has about 10 possible items. Each item has a checkbox stating whether or not PST will be charged on the item for that particular order (it has to be done this way).
I wanted to make a query that calculated the PST for each order and put it in a separate field, to go into a report, but the expression is too long (>256 chars). Is there some way I can do this with code instead? Right now I have something like:
Any suggestions??
Thanks! This forum has saved my butt many times....
I've got records that are orders. Each order has about 10 possible items. Each item has a checkbox stating whether or not PST will be charged on the item for that particular order (it has to be done this way).
I wanted to make a query that calculated the PST for each order and put it in a separate field, to go into a report, but the expression is too long (>256 chars). Is there some way I can do this with code instead? Right now I have something like:
Code:
order_pst: iif(planks_pst_bool,planks_cost*dlookup("[tax_rate]","tbl_tax","tax_name = 'GST'),0) + iif(permits_pst_bool,permits_cost*.... etc etc.
Thanks! This forum has saved my butt many times....