mentairia Posted June 27, 2005 Posted June 27, 2005 OK I want to be able to set up a calculation field in fileone that goes and get its data from filetwo. Like cust id=Filetwo::Cust Id. If there is anyway I can make a field grab its contents from another file 100% of the time fill me in plz!
Reed Posted June 27, 2005 Posted June 27, 2005 You need to do two things: 1. Define a file reference from one file to the other 2. Define a relationship to the file where the data resides. Now the table in the other file can be treated just like any other table. If you want to use a lookup, or auto-enter calc, you just reference the table occurence and field name from the related table (file) Of course you have to specify which record in the other table will be used to supply the data. That's determined by how you define the relationship. Dana
mentairia Posted June 27, 2005 Author Posted June 27, 2005 Does it matter that I have a relationship field link of a customer number but it is an editable field on the second file and does not have the same number nor is it serialized like the other.
Vaughan Posted June 28, 2005 Posted June 28, 2005 The *remote key* in the second (related) file always needs to be editable and not a serial number. But generally you don't make it easy for people to change the entry inappropriately, otherwise it'll point to the wrong master record (or become orphaned).
Recommended Posts
This topic is 7157 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