Compacting Access file resets NTFS permissions (295234)
The information in this article applies to:
- Microsoft Access 2002
- Microsoft Access 2000
- Microsoft Office Access 2003
This article was previously published under Q295234 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
After you compact a Microsoft Access database or an Access project that exists in a folder in an NTFS file system partition, you may notice that the custom NTFS permissions for the Access database file (.mdb) or for the Access project file (.adp) are reset unexpectedly. Also, when you try to open the compacted Access database file (.mdb) or the Access project file (.adp), you may receive one of the following error messages: The Microsoft Jet database engine cannot open the file '<fullPathToFile>'. It is already opened exclusively by another user, or you need permission to view its data. Microsoft Office Access can't find the database file '<fullPathToFile>.'
Make sure you entered the correct path and filename. Microsoft Office Access can't find the database file '<fullPathToFile>.'
Make sure you entered the correct path and filename.
CAUSE
The compact process always compacts the source Access database file or the Access project file to a new file. The newly created file inherits NTFS permissions that are different from the source file. The inheritance of the NTFS permissions is based on the version of Access that is used to compact the file.Access 2000In Microsoft Access 2000, the newly created file automatically inherits the default NTFS permissions of the TEMP folder that corresponds to the currently logged-in user account.
To obtain the path of the TEMP folder that corresponds to the currently logged-in user account, type Echo %TEMP% at the command prompt.
Note By default, the path of the TEMP folder is C:\Documents and Settings\<UserAccountName>\Local Settings\Temp where <UserAccountName> is the name of the user account that is currently logged in.Access 2002 or Office Access 2003In Access 2002 or in Office Access 2003, the newly created file automatically inherits the default NTFS permissions of the parent folder of the Access database file or of the Access project file.WORKAROUNDTo work around the problem, use either of the following methods, depending on the version of Access that you are running:
Access 2000You may assign appropriate permissions to the TEMP folders that correspond to all the user accounts of the computer.
Access 2002 or Office Access 2003You may assign appropriate permissions to the parent folder of the Access database file or of the Access project file.REFERENCES
For additional information about NTFS partitions and about using security in Windows 2000 or in Windows NT 4.0, see your Windows 2000 documentation or your Windows NT 4.0 documentation.
Modification Type: | Minor | Last Reviewed: | 8/12/2004 |
---|
Keywords: | kbprb KB295234 |
---|
|