Oyseka Posted May 21, 2006 Posted May 21, 2006 Hi, I have a requirement to lookup data in my line items file differentiated by the client name. The structure is as follows; Client table related to Invoicing table by Client ID Invoicing table related to Line Items Table by Invoice Number Line Items Table related to Items Table by Item Number One of the clients items price is different so I defined the price field in line items as: Case(Company="CHECKERS";Lookup(Items::Price);Lookup(Items::Price1) and that did not work so I tried changing the field to If(Company="CHECKERS";Lookup(Items::Price);Lookup(Items::Price1) and that doesn't work either. can anyone help please
mz123 Posted May 21, 2006 Posted May 21, 2006 If(Company="CHECKERS";Items::Price; Items::Price1) try that!
Oyseka Posted May 23, 2006 Author Posted May 23, 2006 Sorry, that won't work because it "HardWires" the result so any changes made in the Items table are applied to existing invoices
aaa Posted May 23, 2006 Posted May 23, 2006 Hi, Oyseka! Make field as autoenter without checking "Replace existing". Must it work.
Oyseka Posted May 25, 2006 Author Posted May 25, 2006 (edited) Tried that and that does not work either, the line items table only brings in one price no matter who the customer is. Is it possible that there is a problem with the relationship between the tables Edited May 25, 2006 by Guest
comment Posted May 25, 2006 Posted May 25, 2006 Does it work if you commit the record, the re-select the product? NOTE: Please delete you duplicate posts on this subject in the Relationships section.
Oyseka Posted May 27, 2006 Author Posted May 27, 2006 No, it still only brings in the value from Price1 no matter who the company is
comment Posted May 27, 2006 Posted May 27, 2006 I can't tell from your description if this is an implementation problem, or if you are facing the problem described here. It actually doesn't matter much, because you will face that problem anyway. I still don't know a good solution to that one. Perhaps making the user select the customer by a script (which would conclude by committing the invoice) would be a decent workaround.
Recommended Posts
This topic is 6817 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