Visual Basic: RDO Data Control

UserName Property (Remote Data)

See Also    Example    Applies To

Returns or sets a value that represents a user of an rdoEnvironment object. Use the UserName property with the Password property to connect to an ODBCdata source.

Syntax

object**.UserName** [= value]

The UserName property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A string expression that contains a user name as described in Settings. (Data type is String.)

Settings

The user name syntax depends on the ODBC data source.

Return Values

The UserName property represents the user of an rdoEnvironment object. The user name is set when the rdoEnvironment is either created automatically by the RemoteData control, by the first reference to a remote data object, or when the rdoCreateEnvironment method is executed.

You can determine the default user name with the rdoDefaultUser property of the rdoEngine object. If no specific user name is supplied in UserName, the value of the rdoDefaultUser property is used.