Others

Fix Chinese Character Duplicate-Key Errors in Microsoft Access

Adam DavisAdam Davis Nov 27, 2026 869 views

Question details

The user needs to store distinct Chinese characters in an Access database while preventing duplicate entries.

Fix Chinese Character Duplicate-Key Errors in Microsoft Access
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.
Before you start

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.

Solution 1Recommended

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.

1
Review existing relationships

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.

2
Add a numeric primary key

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.

3
Test character uniqueness

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.

4
Investigate the sort order

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.

Use an AutoNumber primary key and test a unique character index
Changing the key is not a collation fix: Replacing a text primary key with AutoNumber does not make a separate unique text index distinguish characters that the database considers equivalent. The new database sort order setting applies to new databases, so test any migration before relying on it.
Free Microsoft Office alternative

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.

Organize Chinese characters and study notes in WPS SpreadsheetsOpen and edit Microsoft Excel XLSX and Word DOCX filesUse a familiar interface for everyday office tasksMove existing Office documents into a lightweight workspace
microsoft office alternative - wps office

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.