Jump to content

Do I need ID's???


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

Recommended Posts

I'm now designing a new DB in filemaker, and automatically given every table an ID for reference. Now, do I really need it for cases where the instance of that table can be referenced by another key?? Eg a Tutor will have a unique name - and this will make user interface easier without ID as I can give the user entering data a list of names rather than ID numbers.

I was going to make drop down list from the Tutor table in the form of names taken out of the Tutor table that slot in the related ID number when chosen...

if that makes any sense!!??

Thanks for any help,

Adam.

Link to comment
Share on other sites

In the long run it's (almost) always better to use an artificial serial number than using names for the primary key. What if there is at once a tutor with the same name as an existing one? What if a tutors name changes (after marriage)?

What regards the user input: You should set up your ID field with the option of auto-entering a serial number, so the user has only to put the name in. And if you want to reference existing tutors, it is possible to construct your solution in a way, that the user never has to deal with the serial number. True, that means a bit more work for you (to make all work behind the curtains), but as said, in the long run it is well worth it.

To your example of the drop down list: If you just want to show all tutors names, you just have to set up a value list which shows the values of the tutor name field (no need for the serial number here).

Link to comment
Share on other sites

This topic is 7261 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.