Results 1 to 6 of 6
  1. #1
    JonJacobs is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2009
    Posts
    5

    IErrorInfo.GetDescription failed with E_FAIL(0x80004005).

    I get this error when I do a select on any of the tables in my latest database. Programatically in my C# app. I can insert records. I can select without a Where clause. But if I use a Where clause I get this error.



    I have done this kind of programming on many Access databases with no problem. But something is wrong with this one.

    How can I fix it?

    Thanks,
    Jon

  2. #2
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    First thing I'd try is to Compact and Repair the database. That could be caused by corruption (although I kind of doubt it).

    Next, I'd double check how you're connecting to the database from your application If you're using an older method (say an old version of Jet Direct) you could be running into compatibility issues between your chosen Provider and Windows/Access. Since I'm not familiar with C# though, I can't be of much more help than that.

    Sorry!

  3. #3
    JonJacobs is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2009
    Posts
    5
    Well, compact and repair didn't do the job. I use ADO for connecting to the database. I don't think the version is the issue. I created the database from scratch using ADO extension. I have done the same thing with MANY other databases I created the same way and connect to the same way and had no problem. I guess this one got corrupted in some way that compact and repair did not detect.

  4. #4
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    I've done a little searching on the interwebs and it looks like it may be related to the SQL Query itself.

    Can you post both versions of the Query (with and without the WHERE clause) for us to look at?

  5. #5
    JonJacobs is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2009
    Posts
    5

    IErrorInfo.GetDescription failed with E_FAIL(0x80004005).

    Select MaxId from Track_Specimen_XS

    Select MaxId from Track_Specimen_XS Where Prefix = 'IP'

    Same results using other fields, and/or other tables.

  6. #6
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    OK, I got nothing. That's a simple, perfectly formed SQL statement.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. ODBC -- call failed. | Oracle ODBC
    By drdexter33 in forum Access
    Replies: 1
    Last Post: 04-03-2010, 09:32 PM
  2. Replies: 2
    Last Post: 11-10-2009, 02:49 PM
  3. Failed to update all field
    By somya123 in forum Queries
    Replies: 0
    Last Post: 01-30-2009, 12:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums