Password
Password specifies the password needed to use database tables on a restricted Access .MDB file.
Syntax
[form.]Report.Password[= Password$]
For example:
CrystalReport1.Password = "dogsncats"
«Enters the password dogsncats.»
Data Type
String
Availability
Runtime
Remarks
- Enter the password you have been assigned.
- In Microsoft Access 95 and later, an Access database can have session security (also know as user-level security), database-level security, or both. If the Access database contains only session security, simply pass the session password to the Password property. If the Access database contains database-level security, use a linefeed character, Chr(10), followed by the database-level password. For example:
CrystalReport1.Password = Chr(10) & "dbpassword"
If the Access database contains both session security and database-level security, use the session password followed by the linefeed character and the database password:
CrystalReport1.Password "sesspswd" & Chr(10) & "dbpassword"
Alternately, database-level security can also be handled by assigning the database-level password to the Password parameter of the LogOnInfo, property.
Related Report Engine Functions
PESetNthTableSessionInfo