The information in this article applies to:
SYMPTOMSIf you are using an ORACLE version 7.0 database in Microsoft Access, the message "Record deleted" will appear when you enter a record with a unique index (or primary key) based on a CHAR data type. RESOLUTIONChange the data type for the field in ORACLE 7.0 from CHAR to VARCHAR, which will allow a variable-length data field. CAUSE
In ORACLE version 7.0, if you define a field with a data type of CHAR(12),
the data in that field is always stored as 12 characters; ORACLE will pad
the data with blank characters if necessary. If the index is built on such
a field, a problem will occur since Microsoft Access stores the value of
the unique index and uses this to keep track of the records in the ORACLE
table.
MORE INFORMATIONSteps to Reproduce BehaviorIf you define a unique index field with a data type of CHAR(10) in an ORACLE 7.0 database, attach that table to a Microsoft Access database, and enter a record in which the value for the unique index is 7 characters (for example, "ACME CO"), Microsoft Access will assume the record has been deleted. This is because the key is saved as "ACME CO " (10 characters) rather than "ACME CO" (7 characters).
Keywords : kbusage OdbcOthr |
Last Reviewed: March 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |