- Understanding Access Functions and Modes
- Opening the Northwind.accdb Sample Database
- Understanding Access's Table Windows
- Navigating the Home and Create Ribbons
- Using the Function Keys
- Setting Default Options
- Creating a Customized Template File
- Using Access Online Help
- Spelunking the Database Utilities
- Packaging, Signing, and Distributing an Access 2007 Database
- Troubleshooting
- In the Real WorldReading the Ribbon UI's Tealeaves
Troubleshooting
Invalid Database Locked Messages When Compacting in Place
You receive the "database that is already opened" message shown in Figure 3.45 when you attempt to compact and repair the currently open database in place.
Figure 3.45 This message indicates that the operation you're attempting can't be completed because another instance of the database is running or an exclusive lock on the database file hasn't been released.
This message occurs if you—or you and another user—have two copies of Access running with the same database open. If you know that you have only a single instance of the database open, the message is the result of a locking bug. In most cases, closing and reopening Access solves the locking problem. If not, you need to reboot Windows and try again.
Compile Errors in the Convert Database Process
Error messages appear when converting to Access 200x from early Access versions.
Access 2.0 and earlier were 16-bit applications. The first error message you might receive is "There are calls to 16-bit dynamic-link libraries (.dll) in this application." In this case, you must alter the code of Declare statements to call the current 32-bit equivalents of the 16-bit DLLs. For example, you must change calls to functions in User.dll, Kernel.dll, and Gdi.dll to User32.dll, Kernel32.dll, and Gdi32.dll.
A more common error message when converting Access 2.0, 95, and 97 applications is "There were compilation errors during the enabling or conversion of this database." If you're converting from Access 2.0, many of these errors are likely to arise from Access Basic reserved words and symbol usage that VBA 6.0 doesn't support. Similar problems occur with applications that originated in Access 2.0 or earlier and were converted to Access 9x. In some cases, conversion of earlier application versions to Access 97, and then to Access 2007 format is easier than attempting direct conversion. See Chapter 31 for additional information on conversion issues.