ACC2000: "Can't open the table" in Data Source of ASP File ErrorID: Q197113
|
When you try to open a Microsoft Access table in Design view, you may receive the following message:
You may also receive errors if you try to move or copy a database in Windows Explorer; for example you may receive the message:You can't open the table '<tablename>' for modification.
A query or form bound to the table is open, you may not have permission to open this table in Design view, or another user has the table open. Do you want to open this table as read-only?
If you have opened a query or form bound to this table, close it, and then try again to open the table in Design view.
Cannot move <database>: There has been a sharing violation.
The source or destination file may be in use.
-or-
Cannot rename <database name>: Access is denied.
Make sure the disk is not full or write-protected and that the file is not currently in use.
The database is an ODBC data source that is used by an ASP file. For example, this behavior would occur if the table itself, or a query or form based on that table, had been exported to ASP format. Although the ASP file, itself, may not currently be open in a user's browser, the Session object for a particular user session persists for the period of time specified by its Timeout property. The ASP file contains code that creates a Connection object and stores that connection in the session variable. Therefore, the connection to the Microsoft Access database that serves as the ODBC data source persists until the session times out. The default value of the Timeout property is 20 minutes.
Use one of the following methods to resolve this issue.
</HEAD>
<BODY>
<%
If IsObject(Session("<Your ODBC Data Source Name>_conn")) Then
</HEAD>
<BODY>
<%
Session.timeout = n
If IsObject(Session("<ODBC Data Source Name>_conn")) Then
where n is the number of minutes for which you want the session to last
before it times out.
http://<servername>/scripts/Products.asp
You can't open the table 'Products' for modification.
For more information about creating an ODBC data source, click Microsoft Access Help on the
Help menu, type "set up ODBC data sources" in the Office Assistant or the Answer Wizard,
and then click Search to view the topic.
For more information about the Session object in ASP, open the Active
Server Pages Roadmap and under Contents, click Object Reference.
Additional query words: 9.00
Keywords : kbdta IntAsp
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto kbprb
Last Reviewed: July 15, 1999