By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,996 Members | 892 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,996 IT Pros & Developers. It's quick & easy.

IErrorInfo.GetDescription failed with E_FAIL(0x80004005).

P: 20
Expand|Select|Wrap|Line Numbers
  1. Main.Cmd.CommandText = "SELECT ID, NAME FROM NAMES;"
  2. Main.DA.SelectCommand = Main.Cmd
  3. Main.DT = New DataTable
  4. Main.DA.Fill(Main.DT)
  5. ComboBox3.DataSource = Main.DT
  6. ComboBox3.ValueMember = Main.DT.Columns.Item(0).ToString
  7. ComboBox3.DisplayMember = Main.DT.Columns.Item(1).ToString
I get the error in the title and the debugger points to Main.DA.Fill(Main.DT). I change the table in the query to another with similar format (ID-counter, Name-varchar) just for test, the code works. Given query also works independently in Access. What is it that I don't see?
May 5 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.