hey everyone,
Was working on something and was curious as to what you all would suggest.
I am setting up a simple table with the following: customer first, last, company name, and phone.
I also have a second table to which I want to link together with the above table, which has equipment information.
My goal is to not have duplicate customers in the customer table. Basically, I have a search field searching the phone number. If the phone number is not found, I add the customer; if it is found then I select that customer. Then through a form, add the equipment.
My question would it be a good or bad idea to make the Phone Number field it my primary key? Its a text field currently. Atleast I would know there wouldnt be any duplicate phone numbers in the database. Also, if I did do this, I could also use this field to relate the two tables together correct?
Or, should I just use a separate ID field for my primary key?
thanks for any insight and advice!
Richard
Was working on something and was curious as to what you all would suggest.
I am setting up a simple table with the following: customer first, last, company name, and phone.
I also have a second table to which I want to link together with the above table, which has equipment information.
My goal is to not have duplicate customers in the customer table. Basically, I have a search field searching the phone number. If the phone number is not found, I add the customer; if it is found then I select that customer. Then through a form, add the equipment.
My question would it be a good or bad idea to make the Phone Number field it my primary key? Its a text field currently. Atleast I would know there wouldnt be any duplicate phone numbers in the database. Also, if I did do this, I could also use this field to relate the two tables together correct?
Or, should I just use a separate ID field for my primary key?
thanks for any insight and advice!
Richard