Article ID: 121550
Article Last Modified on 8/15/2005
APPLIES TO
- Microsoft Excel 95 Standard Edition
- Microsoft Excel 5.0 Standard Edition
- Microsoft Query 2000
This article was previously published under Q121550
SYMPTOMS
In Microsoft Query, when you use an Oracle data source to create a query,
you receive the following error message when you add a record to the table
if the Oracle table contains a field with an apostrophe (') character:
ORA-00911: invalid character
followed by:
Update failed. Continue editing record?
NOTE: You also receive the first error message above if you use the
INSERT INTO (SQL) statement to add a record to the table when that record
contains an apostrophe character.
CAUSE
This error message occurs because you cannot add a record to a table using
an Oracle data source when a field in the table contains an apostrophe
character. For example, if you add a record to a table that contains a
field named "Test o' luck", the error message is displayed, and you cannot
continue editing the record.
WORKAROUND
To work around this behavior, do either of the following:
- Rename the field that contains the apostrophe character using the
application that you used to create the table.
-or-
- Remove the field that contains the apostrophe from the query. Note that
when you use this method, you cannot add a value to the field that
contains the apostrophe character.
STATUS
Microsoft has confirmed this to be a problem in the Microsoft
products listed at the beginning of this article. We are researching
this problem and will post new information here in the Microsoft
Knowledge Base as it becomes available.
REFERENCES
For more information about how to Add, Edit, or Delete Data (Cue
Cards), choose the Search button in Help and type:
records, adding
Additional query words: 5.00 5.00c err msg MSQuery
Keywords: KB121550