I declared a Public Constant in a .bas module.
Public Const iConnectionString As String = _
"Data Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=c:\TCJPD\VB Project Files\Test_TCJPD_Data.mdb;" & _
"Jet OLEDB
atabase Password=tcjpd"
Now I'm trying to use the constant as the connection string throughout the application. However, when I reference the constant in the properties window of an ADODC, the connection fails. Is it possible to reference a public constant from the properties window?
Public Const iConnectionString As String = _
"Data Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=c:\TCJPD\VB Project Files\Test_TCJPD_Data.mdb;" & _
"Jet OLEDB
Now I'm trying to use the constant as the connection string throughout the application. However, when I reference the constant in the properties window of an ADODC, the connection fails. Is it possible to reference a public constant from the properties window?