Check whether the Access Table exists
String SQL = "select count (*) from msysobjects where name = 'user table '";
How to Set access permission to access the msysobjects system table
How to Set access permission to access the msysobjects system table
The method is also found on the Internet, but only in English.
By default, access to system tables cannot be directly accessed in the program. A prompt is displayed, indicating that the system table has no permission. The system table can be accessed only after the read permission is set manually.
SQL statement for reading all table names in the Access Database: Select name from msysobjects where flags = 0
1. Open Access
2. Click "Tools" and select "options"
3. On the "View" Page, check the "System Object"
4. Click "OK" to save the settings.
5. Click "Tools" and select "user and group permissions" in "security"
6. Select the "permission" Page
7. Select "table" from the "Object Type" drop-down list"
8. Select the "Administrator" user in "User Name/group name"
9. Select the "msysobjects" table in "Object Name ".
10. Check "read data" in "permission"
11. Click "OK" to save the settings.