DefaultType Property

        Applies To

Sets or returns a value that indicates what type of workspace (Microsoft Jet or ODBCDirect) will be used by the next CdbWorkspace object created.

Syntax

VOIDSetDefaultType(LONG lDefaultType);

LONGGetDefaultType(VOID);

Parameters

Type Argument Description
LONG lDefaultType An integer specifying the type of database engine to use as described in Remarks.

Remarks

This property can be either of the following constants:

Constant Description
dbUseJet Creates CdbWorkspace objects connected to the Microsoft Jet database engine.
dbUseODBC Creates CdbWorkspace objects connected to an ODBC data source.

The setting can be overridden for a single CdbWorkspace by setting the lType argument to the CreateWorkspace method.