![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello all, I have two quick questions: 1) If making a relationship between two tables, is it necessary to make the match field a field that the user is not going to change? Here's the problem I'm running into: if I have a match field called "name" and change its value in table 1, the value of "name" in table 2 will not automatically change at the same time, and this breaks the match relationship. I realize I can associate the tables using a unique identifier field that the user won't need to touch, but I'm wondering if that's really necessary or whether it's possible to tell Filemaker, "if the match field value in table 1 changes, change the match field value in table 2 to the same value." |
|
2) If I import a bunch of records into table 2, those records will line up with records in table 1 provided that the match field value in the import file is the same as a value in table 1. But what if there are records in the import file whose names don't match anything in table 1? Is there a way to tell Filemaker to create associated records in table 1 if there's no match? |
#3
| |||
| |||
|
|
jbpollock (AT) gmail (DOT) com wrote: Hello all, I have two quick questions: 1) If making a relationship between two tables, is it necessary to make the match field a field that the user is not going to change? Here's the problem I'm running into: if I have a match field called "name" and change its value in table 1, the value of "name" in table 2 will not automatically change at the same time, and this breaks the match relationship. I realize I can associate the tables using a unique identifier field that the user won't need to touch, but I'm wondering if that's really necessary or whether it's possible to tell Filemaker, "if the match field value in table 1 changes, change the match field value in table 2 to the same value." |
#4
| |||
| |||
|
|
Out of curiosity, why would you want to go to all this trouble in the first place? Why is the simplicity of a unique unchanging ID Key not suitable? |
And part of it was that I had already done a bunch of
#5
| |||
| |||
|
|
Matt, Thanks much! Your answer is pretty much what I expected. And in answer to your question: Out of curiosity, why would you want to go to all this trouble in the first place? Why is the simplicity of a unique unchanging ID Key not suitable? It's probably not worth trying to explain the convoluted scheme I had in my head. And part of it was that I had already done a bunch ofmatch fields without using a unqiue id and was hoping i might avoid having to change all the relationships. But obviously that's not a big deal, and doing anything else would be ugly. I'll also look into doing a calc field to check for missing records; that'll be helpful. Thanks again! |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
3. To find orphan records, put a related field from one table (Table A for discussion) into a layout of the other table (Table B). Pick a field that you know always has a value in Table A. In Table B, do a Find for records in which that related field is empty. All the empties are orphan records in Table B. |
#8
| |||
| |||
|
|
Bill wrote: 3. To find orphan records, put a related field from one table (Table A for discussion) into a layout of the other table (Table B). Pick a field that you know always has a value in Table A. In Table B, do a Find for records in which that related field is empty. All the empties are orphan records in Table B. I agree with everything Bill says except the part about locating orphan records. You can not find orphan records by searching related data because they don't have a related record. Even searching for an empty related field will not find orphan records. What you can do instead is search for all records that have data in a related field and then find omitted records; these are the orphans. |
![]() |
| Thread Tools | |
| Display Modes | |
| |