ACC: User-Level Security Wizard Doesn't Add Library ReferencesID: Q174342
|
Moderate: Requires basic macro, coding, and interoperability skills.
When you use the User-Level Security Wizard to secure a database that
references libraries other than those included by default, code in the
resulting database may not compile correctly. You receive the following
error messages:
Compile Error: Variable not defined
-or-
Compile Error: User-defined type not defined
The wizard creates a new default database into which it imports the objects from the unsecured database. References to libraries that existed in the unsecured database are not automatically created in the new secure database.
Make sure that the same library references selected in the original,
unsecured database are also selected in the new, secured database. To
do so, follow these steps:
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
When Microsoft Access creates a new database, three references are included by default. These references are as follows.
Function LostReference()
' This function sets the variable X to a constant that is
' defined in the Microsoft Office Object Library. If
' there is no reference to the Microsoft Office Object
' Library, this code generates a compile error. The
' Microsoft Office Object Library is not referenced
' by default.
Dim X
X = offPropertyTypeDate
End Function
You are currently logged on as the Admin user. If you continue, the database and all objects in it will be unsecured. Do you want to continue?
For more information about References, search the Help Index for
"References, type."
For more information about security, search the Help Index for "security,
securing a database," or ask the Microsoft Access 97 Office Assistant.
For additional information, see the Microsoft Access Security FAQ which is
located on the following Microsoft World Wide Web site:
http://support.microsoft.com/support/access/content/secfaq.asp
NOTE: Because the Microsoft Web site is constantly updated, the site
address may change without notice. If this occurs, link to the Microsoft
home page at the following address:
http://www.microsoft.com/
Additional query words: prb OFF97
Keywords : kberrmsg
Version : WINDOWS:7.0,97
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: April 23, 1999