True DataControl 8.0 Reference > True DataControl Control > TData Control Properties > UserName Property |
UserName Property
For OLE DB providers that support user name.
TData.UserName = long
Read/Write at run time and design time. Property applies to TData control.
The TData control uses the UserName property to establish the connection to a data source, for providers that require UserName and Password authorization. Otherwise, it can be left empty (default). This property is relevant only for data source mode (DataMode = 0 – DataSource).
This is a standard ADO property. It can be set at any time during the control’s lifetime, but it will take effect only if set at design time, in WillOpenData event or after the Refresh method is called.
Note: At design time, this property is not available in the property pages and must be set in the Visual Basic Properties window.
See Also