calculation for a product
Your query is not so clear. Let me put it this way. Your Customer have several product group, let us assume - Bakery Items, Hardware, Plastic Items etc. under each group several products. For example hardware: Nails, Nuts, Bolts and each have a product Number. In this scenerio what you can do is to concentrate on Grouping and Sorting Method on Report. Select Customer as the Main Group, Product Group Below that. Set Yes for Group Headers and footers on the Property Sheet.
Cutomer Group Header
.......Product Group Header
............Product 1
............Product 2
.............
Product Group Footer - here you can write Sum(productValue) for totals in Text Boxes.
=[ProductName] & " Total Value = " & sum(ProductValue)
result : Bakery Items Total Value = 12345
Customer Group Footer
=[CustomerName] & " Total Value = " & sum(ProductValue)
If the Products are only a few items say 3 items and their Product Codes are known and you want to get the Total of each item separately one below the other try this formula at the Report Footer or Group Footer:
="Hardware Total = " & Sum(iif([ProdCode] = 212110,[ProdValue],0))
="Bakery Total = " & Sum(iif([ProdCode] = 255510,[ProdValue],0))
I hope this will do the job.
apr pillai