Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How do I set numbers as primary keys?
I do understand that a primary key must be unique, but i'm having a difficult time trying to input numbers as primary keys, and connect them with other tables. Do i need to do the relationship builder first; what can I do ? By the way, I'm a new user of Access 2007, and this is for a database project; very simple. If anyone can help me i'll appreciate it.
serious answers please..
I'm doing a simple database that tracks fitness goals, and measurements.
4 Answers
- Anonymous1 decade agoFavorite Answer
If you do not assign the primary key it will ask you, use autonumber when using Primary keys...
When your tables are built, and a relationship is made using those primary keys your data is ready to go
If you already have your primary key, change the datatype to autonumber and make sure that your Indexed field on the general tab is set to
Yes (No Duplicates)
- 1 decade ago
First, Which database are you using? Use should not assign primary keys by hand because you do not want to make a mistake and assign the same primary key to two entities. Most database have an autonumber that you can assign.
- 1 decade ago
Ans #3 is about right on time... I would add this:
If the numeric key that you want to use is not serial, that is to say that it is based on some external source to your DB, setting the field to auto number will cause you grief... you might then need to use the relation manager to control ads updates and deletes to related tables