>
IniPath Property
Applies To
DBEngine Object.
Description
Sets or returns the Microsoft Jet database part of the Windows Registry file. This is a change from earlier versions in which options were set in .ini files.
Settings and Return Values
The setting or return value is a string expression that points to a user-supplied portion of the Registry key containing Microsoft Jet database engine settings or parameters needed for installable ISAM databases. The data type is String.
Remarks
The Microsoft Jet engine can be configured with the Registry file. You can use the Registry to set options, such as installable ISAM DLLs.
For this option to have any effect, the IniPath property must be set before any other data access functions are invoked by your application. The scope of this setting is limited to your application and can't be changed without restarting your application.
You also use the Registry to provide initialization parameters for some installable ISAM database drivers. For example, to use Paradox version 4.0, set the IniPath property to a part of the Registry containing the appropriate parameters.
This property recognizes either HKEY_LOCAL_MACHINE or HKEY_LOCAL_USER. If no root key is supplied, the default is HKEY_LOCAL_MACHINE.
Example
This example sets the path in the IniPath property to an application's key in the Windows Registry.
Sub SetPathFirst()
Dim strPath As String
strPath = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MyApp\3.0\KeyFolder"
DBEngine.IniPath = strPath
End Sub