Share via

Unique values property - doesn't work

Anonymous
2010-07-07T20:25:34+00:00

Hello,

I am using Access 2003. I have a query with the Unique Values Property set to Yes, but I am still getting duplicate records when I run my query. Any ideas?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2010-07-08T15:01:44+00:00

The "UNIQUE"ness is defined over ALL the fields that are selected.

FirstName  LastName

Joe             Smith

Joe             Blow

respect uniqueness, even if there is two Joe, the WHOLE ROW, well, each of them, is UNIQUE.

Note also, that one is not l, and zero is not as capital o, even if, given some fonts, they LOOK the same. Same thing if a name has trailing spaces or un-printable characters (which may occur if the data is imported, much less likely if native to Access).

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2010-07-07T21:36:48+00:00

    I have never heard of that failing.  Are you sure there are two records with the same value in every field?  If you are sure, post back with a Copy/Paste of the query's SQL view and I'll see if I can spot something.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2010-07-07T21:35:33+00:00

    Does the query start with SELECT DISTINCT in SQL view?  It should, so if not edit it and see what happens.


    Ken Sheridan, Stafford, England

    Was this answer helpful?

    0 comments No comments