access duplicate error
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access Training and help » Access duplicate error

Access duplicate error

resolvedResolved · Low Priority · Version Standard

replyReply Fri 28 Mar 2008, 15:22Delegate Ben said...

Ben has attended:
Access Introduction course
Access Intermediate course

Access duplicate error

When importing a table from excel I am trying to assign a particular field as the primary key. However access is telling me that I cannot assign it as a primary key and the following text comes up:
"The changes you requested were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again."

This is the first table in the database, and having checked the list in excel I can see that there are no duplicates in existence in the column/field and yet the error comes up. The list is approximately 15000 records long. Would there be a reason why the error message comes up?

For upcoming training course dates see: Pricing & availability

replyReply Fri 28 Mar 2008, 15:51Delegate Ben said...

RE: Access duplicate error

Apologies. New to access and still feeling a bit lost when using it. There were duplicate records....

 

Please browse our web site to find out more about
microsoft access training and other Microsoft training courses.

Access tip:

Choosing data types in Access

Not sure which data type to use for your Access fields? Here are some guidelines to help you choose a data type to assign to a field.

- The Text data type can accept up to 255 characters. For information that will be recorded in paragraphs, use Memo.

- Also use Text for numbers that aren't going to be used in calculations, e.g. phone numbers.

- Use the Currency data type for monetary amounts.

- Use Date/Time for dates.

- Most other numbers can use the Number data type, but the Field Size property may have to be altered.

- For fields that have only two alternatives (yes, no) use Yes/No data type. If there is likely to be a third entry option (e.g. maybe or don't know) use Text instead.

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard