一切进展顺利,但每当我创建OleDbDataReader对象时,它都会显示一个错误OleDbDataReader is not accessible in this context because itDim query as String = "my query"con.open()
Dim reader as new OleDbDataReader
错误代码:
System.InvalidOperationException: No data exists for the row/column. at System.Data.OleDb.OleDbDataReader.DoValueCheck(Int32 ordinal) at System.Data.OleDb.OleDbDataReader.GetValue(Int32 ordinal) at System.Data.OleDb.OleDbDataReader.get_ItemOleDbCommand(cmdStr, c
oleDbCommand.Connection = Connection.con; var oleDbDataReader= oleDbCommand.ExecuteReader(); {ComboBind b = new ComboBind();
b.id = oleDbDataReader[0].ToString