Hello,
I have crated a simple database to organize "orders", "shipped" and "pending"
Problem:
The pending report does not work if i have not shipped against the order.
the report is grouped by product then "order" and has a sub report calling up the shipped against value for each order. the report calculte "order" - "shipped" to give me "pending"
If there has been a shipment againt the order everything works. if no shipment has been made against the order i get a #ERROR in the PENDING text box. I know this is becuase there is no variable to lookup.
I have tried a couple of IIF statements that have not worked.
can I use something like:
IIF([Ship]<>0, [order]-[ship],[order])
where - [ship] is text box that totals from the shipped subreport. it will be either be a number or a #error. when it is a number i want to calculate (order - ship), when it is a #error i wnat it to be [order]
can you tell me the proper iif statement to do this or any other way to solve the problem.
I have crated a simple database to organize "orders", "shipped" and "pending"
Problem:
The pending report does not work if i have not shipped against the order.
the report is grouped by product then "order" and has a sub report calling up the shipped against value for each order. the report calculte "order" - "shipped" to give me "pending"
If there has been a shipment againt the order everything works. if no shipment has been made against the order i get a #ERROR in the PENDING text box. I know this is becuase there is no variable to lookup.
I have tried a couple of IIF statements that have not worked.
can I use something like:
IIF([Ship]<>0, [order]-[ship],[order])
where - [ship] is text box that totals from the shipped subreport. it will be either be a number or a #error. when it is a number i want to calculate (order - ship), when it is a #error i wnat it to be [order]
can you tell me the proper iif statement to do this or any other way to solve the problem.
Last edited: