G
Guest
Hi,
I'm working with a Microsoft Access Database in VB.net. I can open a connection in my code as follows:
mConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & Data Source=" & dbString
dbConn = New System.data.OleDb.OleDbConnection(mConnection)
I'd like to put this code in its own class, and then instantiate it when needed.
In making this class I thought I'd need to inherit:
System.data.OleDb.OleDbConnection
But that doesn't appear to be inheritable.
Will this approach work? And, if so, how do I define this class?
I'd appreciate any suggestions.
Art
I'm working with a Microsoft Access Database in VB.net. I can open a connection in my code as follows:
mConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & Data Source=" & dbString
dbConn = New System.data.OleDb.OleDbConnection(mConnection)
I'd like to put this code in its own class, and then instantiate it when needed.
In making this class I thought I'd need to inherit:
System.data.OleDb.OleDbConnection
But that doesn't appear to be inheritable.
Will this approach work? And, if so, how do I define this class?
I'd appreciate any suggestions.
Art