Sub New Constructor probem? [Resolved}
Hi,
In a project which seems to work O.K. I have designed forms which inherits from fclsAction.
certain controls and code have been added to those derived forms and, subsequent to that, fclsAction has been amended.
The project and the solution have been rebuilt.
When I now attempt to view those derived forms in the design view, I am unable to do so and get the message
"The ConnectionString property has not been properly initialised"
I assume that this is something to do with the Public Sub New Constructor in the derived forms, yet they correspond exactly with the Sub New Constructor of the base class, as follows:
VB Code:
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
The connection is instanced in the general section of the Module as follows:
VB Code:
Public cnRankings As New OleDb.OleDbConnection
and the connectionstring is set in a form which does not inherit from fclsAction, as follows:
VB Code:
Dim strDB1 As String
strDB1 = "Provider=Microsoft.Jet.oledb.4.0;data source =" & strDB
cnRankings.ConnectionString = strDB1
cnRankings.Open()
StrDB contains the path & file selected in an OpenFileDialog box.
Anyone have any suggestions please?