ACC: ORACLE 7.0 CHAR Unique Index Causes "Record Deleted"ID: Q103177
|
If 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.
Change the data type for the field in ORACLE 7.0 from CHAR to VARCHAR, which will allow a variable-length data field.
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.
Because the value that is actually being stored has been altered by ORACLE
(due to the added padding), Microsoft Access does not find a match and
assumes another user deleted the record. A requery will clear up the
immediate problem until another record is entered. When a requery is
issued, Microsoft Access rereads the index values and will find the entry
(including the padded characters).
Keywords : kbusage OdbcOthr
Version : 1.0 1.1 2.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: March 26, 1999