is there a function that will allow coders to connect to multiple database? by just changing the connection string and not the variable declaration ...

example:

connecting to access is something like this
Code:
Dim Con As New System.Data.OleDb.OleDbConnection(ConString)
for sql is something like this
Code:
Dim Con As New System.Data.SqlClient.SqlConnection(ConString)
is it possible? acctually in vb 6.0 it is possible .... plz help me ... im new in .net ....