Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Looked up value comes 1 of several tables


This topic is 6027 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

"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...

This topic is 6027 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.