UserName Property

The UserName property stores the user name for accessing the database.

Applies to objects: Workspace.

Syntax

[[Let] RetVal = ] object.UserName

[Let] object.UserName = SetVal

The UserName property syntax has these parts:

Part Description
object Required. A reference to an instance of the object.
RetVal Optional. A String type variable.
SetVal Required. A String type variable.

Remarks

The UserName and Password properties will be used for all database connections within the scope of the given Workspace object, unless the initialization string of the connection is not specified in the OpenConnection and OpenDatabase methods, or the UID and PWD indetifiers are missing in it.

Example

.......

 

See Also

Workspace Object, Password Property, OpenConnection Method, OpenDatabase Method.