ACC2000: Query of ODBC Linked Data Returns Unexpected Results (302968)
The information in this article applies to:
This article was previously published under Q302968 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
When you attempt to query a table or view that is linked from an open database connectivity (ODBC) data source in Access, the query may return records that do not meet the criteria that you specify.
CAUSE
This behavior can occur if at least one of the following conditions is true:
- The linked table or view does not contain a unique index.
- The unique index contains duplicate data.
- The unique index is a compound primary key that contains one or more fields of the following data types:
- Char (or fixed-width text field)
- Num (or floating point decimal)
RESOLUTION
To resolve this behavior, delete and then recreate the existing view or table link.
- Make sure that you specify a unique record identifier that has a data type that Access can properly map to, such as a Timestamp, Long Integer, or Integer data type.
- Make sure that the specified unique record identifier contains only unique data.
Modification Type: | Major | Last Reviewed: | 6/25/2004 |
---|
Keywords: | kbprb KB302968 |
---|
|