Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 8160 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Can anyone tell me which is the best type of field to use for a relationship field. I know that in a lot of databases it is best to use a numereic ID. I have also heard it said that in filemaker it is fine to use Either number or text. What are the real facts about this. Also why should we avoid using calculation fields?

Posted

I think the easiest and best field to use for relationships (called primary key) should be a Record ID field. It doesn't have to be strictly numeric, it can be alpha-numeric (combination of text and numbers).

I made a relationship once from the last name field, but this presented problems when records in the related file were deleted, their last name sometimes still appeared in the main file. Other than that, it worked ok. Although you should probably stick with using the record ID field.

Did that answer your question?

Ken

Posted

What field you use is totally dependant upon the type of relationship and how you want it to function. That said, you should always use TEXT fields on both sides, whether they be calcs or not just depends upon the specifics of the relationship.

Number fields are not good, because you can only use numbers and this is not always what you wanna use for relating records.

Posted

It is interesting that for FM the use of text is used for relationships as on most systems it is better to use Numeric IDs. I will admit though that people prefer to think in text terms rather than Numbers. We remember our customers by their names and faces not their telephone numbers. I have heard that it is better not to use calculation fields as it can cause problems. What are these problems does anyone know?

Posted

Use text, they can be longer then numbers, though FM only looks at the first 20 charactors of a field.

Relations based on calculations should be avioded if possible, since they slow stuff down sometimes and you can't create records through a portal with them

This topic is 8160 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.