jasonwood Posted December 10, 2002 Posted December 10, 2002 When making a relationship where all records relate to all records, is it better to use a calculation field that always equals "1", or a global field that you set to "1" for both databases. When you create the relationship with globals, FM says it won't work, but it seems to work fine for the purpose of getting data in global fields from one db to another.
BobWeaver Posted December 10, 2002 Posted December 10, 2002 I use a calculated field in the parent file so that it's harder for a user to accidently change the value. In the related file, it must be a calculated field so that it can be indexed.
jasonwood Posted December 10, 2002 Author Posted December 10, 2002 In the related file, it must be a calculated field so that it can be indexed. Like I said, when you relate with two globals, FM says it won't work because the field cannot be indexed, but then it seems to work just fine for passing variables in globals around... just kinda surprised me. This was just an experimental database I was creating, I'm not actually using this... when I looked back in a past project I realized that you don't even need an all to all relationship to pass globals. Even if the record has no related records, it can still pass globals to and from the related file... kewl.
Geeksharka Posted December 11, 2002 Posted December 11, 2002 I usually use a global field in the Parent table, and a text field (indexable) in the child table. I just make sure the Child key field auto-enters the correct data upon record creation.
jasonwood Posted December 11, 2002 Author Posted December 11, 2002 just make sure the Child key field auto-enters the correct data upon record creation. or you could just use a calculation field and make it always =1
Kurt Knippel Posted December 11, 2002 Posted December 11, 2002 I use calculated fields, since that way you can ALWAYS relate in either direction without needing to worry about having the necessary calcs and globals. They are already there.
falkaholic Posted December 13, 2002 Posted December 13, 2002 To add to the others, I use a calc that =1. As well, I always use a template that already has a that calc in it so I never use a global.
Recommended Posts
This topic is 8072 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