Jump to content

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

Recommended Posts

Posted

Hi all,

Please help, my student ID, which is a text field, X1234 for example. file maker seems to "not be" able to differentiate between X1234 and Y1234. when I input a class for ID X1234 it also display in Y1234's record. Appreciate any suggestions.

Thanks

Posted

It is difficult to tell without more information, but it looks like you are using special codes for creating your relationships. There are many discussions here on why it is best for you to use straightforward sequentially-assigned serial numbers for your primary keys, which then should be used for relationships.

Guessing here, I'd say the field in your related table is set up as a number field, and that forces the relationship to ignore the alpha character at the beginning.

But I'm only guessing.

David

Posted

Hi David,

Thank you for the info, yes, the related field was set as number, it seems to have fixed the problem. however, do you think by keeping this format, student's ID = first letter of last name and 4 digits of the phone number. would make my data base to be vulnerable? Again, Thanks

Michael

Posted

Michael--

I strongly urge you NOT to use such a field in your relationships. You REALLY should set up your relationship on an automatically-generated unique serial number; there are boatloads of discussions here and in database design literature to explain why. To raise a simple problem:

Dan Brown - 212-555-1212 gets B1212

Dawn Bootblack - 617-425-1212 gets B1212

Now, which linked records belong to whom? You'll never know!

If, however, you have:

67943 - Dan Brown - 212-555-1212

143567 - Dawn Bootblack - 617-425-1212

there is no ambiguity.

Of course, on screen you can still show your users a calculated field (Left(LastName, 1) & Right(PhoneNum, 4)) on screen anywhere you like. Just don't use it for relationships.

David

Posted (edited)

Thanks David, I did make the field unique, however the possibilities of having the same number keep popping up. If I were to add a field called primaryID and change the relation pointing to this field, so the other ID is now just an ID field. Do you think it will mess up the data base?

Edited by Guest

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