ACC97: "No Read Permission on..." Error After Compacting DatabaseID: Q190635
|
Advanced: Requires expert coding, interoperability, and multiuser skills.
When you try to open a form or report, you may receive the following error
message:
Record(s) can't be read; no read permission on '<TableName>'
You may experience this problem when the following conditions are true:
Instead of having the SQL statement as the record source of the form or report, create a query with the SQL statement. Then use the query as the record source of the form or report. This will guarantee that the form or report record source is not deleted if the database if compacted.
The SQL statement behind forms and reports creates a hidden query when you save the form or report. The WITH OWNERACCESS OPTION in the record source informs Microsoft Access to run the hidden query. When you compact the database, this query is deleted. The query will be created each time the form or report is saved.
Field Name Data Type
---------- ---------
FirstName Text
Name: Nancy
Name: Andrew
Form Properties
---------------
RecordSource: SELECT * FROM tblNames WITH OWNERACCESS OPTION;
Text Box
--------
Name: FirstName
ControlSource: FirstName
tblNames: no permissions
frmNames: Open/Run only
tblNames: no permissions
frmNames: Open/Run only
Note that you are able to scroll through and edit the records.
Note that you receive the error message described in the "Symptoms"
section.
Additional query words:
Keywords : kberrmsg kbdta FmsProb RptProb
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: June 21, 1999