XL: "Unable to Write to Database" Error with Null StringLast reviewed: January 9, 1998Article ID: Q174972 |
The information in this article applies to:
SYMPTOMSIf you are saving a template that was created by using the Template Wizard in Microsoft Excel, you may receive the following error message
Unable to write data to database. Make sure database is not protected and has valid field data-types.and you cannot save data to the database.
CAUSEThis problem occurs when all of the following conditions are true:
WORKAROUNDTo work around this problem, modify the worksheet formula so that it does not return a null string (""). For example, if the worksheet contains the following formula
A1: 1 B1: =IF(A1=1,"","not 1")and cell B1 is linked to a field in your database, you receive the error message when you try to save data. To prevent the message from appearing, change the formula in cell B1 to the following:
=IF(A1=1," ","not 1")NOTE: The only difference between the two formulas is that the second one contains a space between the quotation marks.
STATUSMicrosoft 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.
MORE INFORMATIONThe Template Wizard with Data Tracking add-in creates a template that links selected cells in a workbook to fields in a database. When you base a new workbook on the template and enter data in the linked cells, Microsoft Excel creates a new record in the database and copies the data to the corresponding data fields.
REFERENCESFor more information about the Template Wizard, click the Index tab in Microsoft Excel Help, type the following text
templateand then double-click the selected text to go to the "What is the Template Wizard with Data Tracking?" topic.
|
Additional query words: XL97
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |