T
TG
This is a snippet from my code. When I run it, I get the error
message "IErrorInfo.GetDescription failed with E_FAIL(0x80004005). "
I can't find anything online that helps me to understand the cause.
Can someone please help?
****************************************
Dim SelectQuery As String = "SELECT ExchangeID, Surname,
GivenName, Initials FROM Global-List"
Dim ConnString As String =
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\db2.mdb;User
Id=admin;Password=;"
Dim Conn As New OleDbConnection(ConnString)
Conn.Open()
Dim Cmd As New OleDbCommand(SelectQuery, Conn)
Dim DReader As OleDbDataReader
DReader = Cmd.ExecuteReader()'<-------------CODE FAILS
HERE!!!!!!!!!!
While DReader.Read()
Console.WriteLine()
End While
DReader.Close()
Conn.Close()
****************************
message "IErrorInfo.GetDescription failed with E_FAIL(0x80004005). "
I can't find anything online that helps me to understand the cause.
Can someone please help?
****************************************
Dim SelectQuery As String = "SELECT ExchangeID, Surname,
GivenName, Initials FROM Global-List"
Dim ConnString As String =
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\db2.mdb;User
Id=admin;Password=;"
Dim Conn As New OleDbConnection(ConnString)
Conn.Open()
Dim Cmd As New OleDbCommand(SelectQuery, Conn)
Dim DReader As OleDbDataReader
DReader = Cmd.ExecuteReader()'<-------------CODE FAILS
HERE!!!!!!!!!!
While DReader.Read()
Console.WriteLine()
End While
DReader.Close()
Conn.Close()
****************************