July 22, 200817 yr I have a several source tables (VendorA, Vendor B, VendorC, etc...) having the same fields: ProductCode, Price, etc... all linked to a Catalogue table by ProductCode. Catalogue table has similar fields: ProductCode, Price, etc.... Price in Catalogue table is looked up from one of the Vendor tables. A product code is unique to each vendor, in other words, Price in Catalogue comes from 1 table and 1 table only. Currently I have set Price field in Catalogue as calc with the expression: Case (IsValid(VendorA::ProdCode); VendorA::Price; IsValid(VendorB::ProdCode); VendorB::Price; etc...for all the vendors). I am wondering if there is simpler way/formula to pull the price from the appropriate table since a price cannot come from more than 1 table. I know it would be simpler if Vendor tables were merged into one, but for many reasons this cannot be easily done.
July 22, 200817 yr "I know it would be simpler if Vendor tables were merged into one, but for many reasons this cannot be easily done." Whether it can be easily done or not, this is the way it *should* be done. Usually it's better to do things the right way, and do them as early as possible. The crunch will come when you're asked to generate some comparative reports...
Create an account or sign in to comment