Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FP2000: Error Message: "Cannot Update the Database" When You Submit Form Results to Excel Database


View products that this article applies to.

This article was previously published under Q219974

↑ Back to the top


Symptoms

When you submit form results to an Excel database, the following error message appears in the browser:
Cannot update the database
Error Description: [Microsoft][ODBC Excel Driver] Operation must use an updateable query.
Error Number: -2147467259
Error Source: Microsoft OLE DB Provider for ODBC Drivers

↑ Back to the top


Cause

This problem occurs because FrontPage is connecting to the Microsoft Excel database in a read-only state.

↑ Back to the top


Resolution

To submit form results to an Excel database, set the read-only attribute of the Excel database connection to not read-only.

To set the read-only attribute of the Excel database connection to not read-only, do the following:

  1. On the Tools menu, click Web Settings.
  2. Click the Database tab, and then click the database connection the the Excel file.
  3. Click Modify.
  4. In the Database Connection Properties dialog box, click Advanced.
  5. To add a parameter, click Add. For the name of the parameter, type ReadOnly. Type 0 for the value, and then click OK.
  6. Click OK three times to quit the Web Settings dialog box.
  7. Save any changes you made, and then quit FrontPage.
  8. Restart the computer.
NOTE: You need to restart the computer after you add the ReadOnly parameter to the database connection. If the computer is not restarted, the Global.asa file is not updated with the proper connection information to open the database as not read-only.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

↑ Back to the top


More information

It is important to set the read-only attribute before you create forms to submit the results to the Excel database. Forms created before you set the attribute will return the error message in the "Symptoms" section of this article.

↑ Back to the top


Keywords: KB219974, kbnofix, kbbug

↑ Back to the top

Article Info
Article ID : 219974
Revision : 1
Created on : 12/2/2000
Published on : 12/2/2000
Exists online : False
Views : 259