Fix Chinese Character Duplicate-Key Errors in Microsoft Access
Question details
The user needs to store distinct Chinese characters in an Access database while preventing duplicate entries.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A Chinese-character field is used as a primary key and referenced by another table in a searchable study database.
- Observed behavior
- Access reports a duplicate-key error for two different characters because its text comparison may treat them as equivalent.
Identify the two characters that trigger the error and check whether the character field has a primary key or a unique index. In Access, open the table in Design View and inspect its indexes and any relationships that reference the field.
Use an AutoNumber primary key and test a unique character index
Separate record identity from the Chinese-character field, then check whether the database collation can enforce the required uniqueness.
An AutoNumber key avoids using a Chinese character as the record identifier, but it does not change how Access compares text. A unique index on the character field will still reject distinct characters if the collation considers them equivalent.
Open Database Tools > Relationships and identify tables that reference the current text key. Plan to replace those foreign keys with Number fields whose Field Size is Long Integer.
Open the table in Design View, add an AutoNumber field such as CharacterID, and set it as the primary key. Update related tables and relationships to use the corresponding Long Integer foreign keys.
In Design View, select the Chinese-character field and set Indexed to Yes (No Duplicates). Try entering both characters; if the second is rejected, the existing text collation cannot enforce the distinction you need.
Check File > Options > Object Designers for the new database sort order setting. If an appropriate sort order is available, test it in a newly created database by importing the table and trying both characters before migrating relationships and data.

Enforce exact character uniqueness with a Unicode-based key
Use this approach when Access text collation still treats the two characters as equivalent.
Organize Chinese study notes with WPS Office
WPS Office is a free, lightweight alternative for working with study notes and spreadsheets in a familiar interface. Its Microsoft Office format compatibility makes it easy to move existing documents and workbooks, though it does not fix Access database collation or replace Access database features.

Frequently Asked Questions
Why does Access report a duplicate when the characters look different?
The database's text collation may consider the characters equivalent for indexing. A primary key or unique index on the text field can therefore reject the second character even when its Unicode sequence differs.
Will removing the primary key fix the error?
Not necessarily. Open the table in Design View and check whether the character field still has Indexed set to Yes (No Duplicates), or whether another unique index includes it.
Can I keep the character unique after adding an AutoNumber key?
Yes, if the database collation distinguishes the characters you need. Set the character field's Indexed property to Yes (No Duplicates); if that rejects distinct characters, consider a separately generated Unicode-based comparison key.
Where can I check the Access database sort order?
Look under File > Options > Object Designers for the new database sort order setting. To evaluate a different setting, create a new database and test the relevant characters there; changing the option does not automatically change the existing database.
Can WPS Office change an Access database's collation?
No. WPS Office can help organize notes in documents or spreadsheets, but Access database collation and unique-index behavior must be addressed in Access or another suitable database system.




