Give the Admin user read (SELECT
) permission on MSysObjects
.
In an Access session, open the Immediate window (Ctrl+g), construct a DDL GRANT
statement and execute it from CurrentProject.Connection
strDdl = "GRANT SELECT ON MSysObjects TO Admin;"
CurrentProject.Connection.Execute strDdl
Note that statement must be executed from ADO. It should work as written because CurrentProject.Connection
is an ADO object. However it will fail if attempted with a DAO Execute
method such as CurrentDb.Execute
or when run from the Access query designer.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…