Password Property

The Password property stores the user password for accessing the database.

Applies to objects: Workspace.

Syntax

[[Let] RetVal = ] object.Password

[Let] object.Password = SetVal

The Password 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, UserName Property, OpenConnection Method, OpenDatabase Method.