Hello,
I am having problems writing a query.
In my table I have fields which look up products sold. These are named:
ServiceName1, ServiceName2…to…ServiceName10
I then have prices for each Service. These fields are:
SalesServName1PriceUsed, SalesServName2PriceUsed….to… SalesServName10PriceUsed
I can work out a Net Sales Amount as follows:
NetSaleAmt: [SalesServName1PriceUsed]+[SalesServName2PriceUsed]+[SalesServName3PriceUsed]+[SalesServName4PriceUsed]+[SalesServName5PriceUsed]+[SalesServName6PriceUsed]+[SalesServName7PriceUsed]+[SalesServName8PriceUsed]+[SalesServName9PriceUsed]+[SalesServName10PriceUsed]
However, I would like another expression which removes from NetSaleAmt four services which may or may not be listed in ServiceName1, ServiceName2…to…ServiceName10.
I do not want to enter criteria as I need all records shown. I am looking to write an expression which I am having problems with.
Any help would be very much appreciated.
Thank you
I am having problems writing a query.
In my table I have fields which look up products sold. These are named:
ServiceName1, ServiceName2…to…ServiceName10
I then have prices for each Service. These fields are:
SalesServName1PriceUsed, SalesServName2PriceUsed….to… SalesServName10PriceUsed
I can work out a Net Sales Amount as follows:
NetSaleAmt: [SalesServName1PriceUsed]+[SalesServName2PriceUsed]+[SalesServName3PriceUsed]+[SalesServName4PriceUsed]+[SalesServName5PriceUsed]+[SalesServName6PriceUsed]+[SalesServName7PriceUsed]+[SalesServName8PriceUsed]+[SalesServName9PriceUsed]+[SalesServName10PriceUsed]
However, I would like another expression which removes from NetSaleAmt four services which may or may not be listed in ServiceName1, ServiceName2…to…ServiceName10.
I do not want to enter criteria as I need all records shown. I am looking to write an expression which I am having problems with.
Any help would be very much appreciated.
Thank you