I'm using an ODBC connection to connect to a SyBase Table. I connect to the DB ok, but It wont let me run a query. I get this error message on the line: objDR = cmd.ExecuteReader

Value of type 'Microsoft.Data.Odbc.OdbcDataReader' cannot be converted to 'System.Data.OleDb.OleDbDataReader'.

VB Code:
  1. Dim cn As OdbcConnection
  2.         cn = New OdbcConnection("DSN=SBPROD;Server=SYBASE;DB=fmsprod;Password=test;User ID=test")
  3.         Dim cmd As New OdbcCommand(sqlcmd)
  4.         Try
  5.             cn.Open()
  6.             objDR = cmd.ExecuteReader
  7.             If objDR.Read = True Then
  8.                 gerror_flag = True
  9.             Else
  10.                 gerror_flag = False
  11.             End If
  12.             cn.Close()
  13.         Catch ex As Exception
  14.             MsgBox(Err.Description)
  15.         End Try

All I'm trying to do is see if any records are being retured...just a EOF test.