N
Nigel Bate
Hi,
I am linking to a sales table from a 3rd party database. The sales
tables holds the values of sales as well as any credits made to a sale but
are in the same field SumCurrency. From this table I am attempting to
calculate using 2 fields 'SumCurrency' and OrderType'. The difference being
the type of order. For a sale - order type is 1, for a credit - order type
is 2. I am bring these fields into a report that shows the balance of what
is owed a balance, for a client and therefore there may be several orders
made against and some credits in the report.
My problem is that for an order (Type1) I need the positive value and for a
credit (type 2) I need this to be a negative value. I.e. Type 1 - £1000,
Type 2 = -£1000.
I have try'd to do this on a report (OnPage), but depending on the number of
rows the total sum if different.
Please anyone help with regards to a query solution ?
Regards
Nigel Bate
I am linking to a sales table from a 3rd party database. The sales
tables holds the values of sales as well as any credits made to a sale but
are in the same field SumCurrency. From this table I am attempting to
calculate using 2 fields 'SumCurrency' and OrderType'. The difference being
the type of order. For a sale - order type is 1, for a credit - order type
is 2. I am bring these fields into a report that shows the balance of what
is owed a balance, for a client and therefore there may be several orders
made against and some credits in the report.
My problem is that for an order (Type1) I need the positive value and for a
credit (type 2) I need this to be a negative value. I.e. Type 1 - £1000,
Type 2 = -£1000.
I have try'd to do this on a report (OnPage), but depending on the number of
rows the total sum if different.
Please anyone help with regards to a query solution ?
Regards
Nigel Bate