Accessing MSysObjects

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
oz8hp
Posts: 151
Joined: Mon 18 Feb 2008 13:28
Location: Denmark
Contact:

Accessing MSysObjects

Post by oz8hp » Thu 08 Dec 2011 12:09

I am trying to access the MSysObjects table in an MS Access db, but I keep getting an error
[Microsoft][ODBC Microsoft Access Driver] Record(s) cannot be read; no read permission on 'MSysObjects'

How can I access this table?
It is a db without security and I am admin on computer so access should be granted.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 08 Dec 2011 15:55

Hello,

This problem is connected with default security settings for system tables of MS Access. If you are using *.mdb file, then you will be able to change security settings in the following way:

Tools -> Security -> User and group permissions

and set 'administrator' access for the needed tables. If you are working with the *.ACCDB file, you will not be able to change access to the system tables, because in these are the restrictions for these types of files.

oz8hp
Posts: 151
Joined: Mon 18 Feb 2008 13:28
Location: Denmark
Contact:

Post by oz8hp » Fri 09 Dec 2011 06:41

OK - that has never been a problem from VBA so I didn't think of that.

The reason for accessing the table is that it is an easy way for finding tables/queries/reports in the file :D
I use Access for this project because I have to make some nice reports and they are easy to build in Access and if there is installed Access on the computer running the app it is possible to print the reports from Delphi, so I don't need FastReports. One has to be financial responsible in these hard times.

TNX for the hint.

Post Reply