Microsoft Office 2000/Visual Basic Programmer's Guide   

Multiuser Settings

To control how Microsoft Jet behaves in a multiuser environment, you can use a variety of Windows registry entries. You can change these entries by using the Registry Editor (Regedit.exe for Windows 95 and Windows NT Workstation 4.0) to edit values in the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Jet 4.0 subkey for Jet-specific settings, or in HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\9.0\Access\Settings for Access-specific settings. The following settings are also available in the Access user interface, either on the Advanced tab of the Options dialog box (Tools menu), or programmatically through the SetOption method of the Access Application object.

For the most flexibility, you can temporarily modify Microsoft Jet engine – specific settings in VBA code by using the DAO SetOption method of the DBEngine object, or from ADO by setting Microsoft Jet 4.0 OLE DB Provider-specific session properties of the Connection object. For information about the DAO SetOption method, search the DAO Help index for "SetOption method." For information about setting ADO provider-specific session properties, see ADOProperties.doc in the ODETools\V9\Samples\OPG\Appendixes folder on the Office 2000 Developer CD-ROM.