ddtully Posted February 13, 2002 Posted February 13, 2002 Example: We purchase widgets for resale to our customers. We get these widgets from multiple distributors. Each widget has both a manufacturer's part number and a distributor's part number. Depending on who is cheaper or who has one in stock, we may quote one distributor over another. When I build a quote, I would like to select the model widget (manuf. part number) and then select a distributor from a pull down menu. Once these two items are selected, I need the appropriate cost and distributor part number to come into the quote. Right now, a relationship exists when there is a match between manufacturer's part number in both the Product Listing and the Line Item Quote. Based on that relationship, I perform an IF statement that should return a distributor part number when there is BOTH manufacturer part number and distributor match. Unfortunately, either my relationship or my calculation is returning the first occurance meeting the criteria. Any other combination returns a zero as specified by the calculation where it should return the next distributors pricing, etc.. Where am I going wrong ?
Fitch Posted February 13, 2002 Posted February 13, 2002 Does your Product file look like this, each line = a record: Widget......Distributor A..............X A..............Y B.............Y C.............X C.............Y C.............Z And are you saying that when you select a Distributor, it pulls up the price of the first matching widget? If so, you probably need to use a concatenated key, that is: manufacturer's part number & "-" & distributor's part number Make a calculated text field like that in both files you want to join, and make a relationship based on that.
ddtully Posted February 13, 2002 Author Posted February 13, 2002 Product File actually looks more like this. Widget..............Distributor..........Distributor Part #..........Manufacturer's Part # My calculations are looking for a match on distributor AND Manuf. Part #. When that happens, I should see the appropriate pricing and Distributor's Part Number. Unfortunately, it works fine for the first Distributor selected, but returns zero's for subsequent distributors.
Fitch Posted February 15, 2002 Posted February 15, 2002 I think you will find the suggestion I gave you will do what you want. Create a new field, WidgetCalc, a calculated text field that combines your two keys into one. This is the Path of Least Resistance... you will be assimilated... resistance is futile.
Recommended Posts
This topic is 8706 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 accountSign in
Already have an account? Sign in here.
Sign In Now