I'd like to do this:
Dim Conn as IDBConnection
If usermachine has ODBC installed then
Conn = New Microsoft.Data.Odbc.OdbcConnection()
else
Conn = New OleDb.OleDbConnection()
However, references to ODBC generate compiler errors if the user's machine
does not have the classes in the ODBC namespace installed. Is there a way
to include/exclude source lines conditionally in order to prevent such
errors?
Thanks
Tim Romano