system.data.oledb.oledbexception (0x80004005): could not find file

后端 未结 3 1997
温柔的废话
温柔的废话 2021-01-16 05:28

Can someone help me with this error please? I can\'t figure it out. I have this error on Windows XP but not on Windows 7. What I did is i attached a photo and save it to the

3条回答
  •  青春惊慌失措
    2021-01-16 05:58

    Your data file is an accdb file, thus requiring the ACE provider instead of the JET provider. Use the JET provider to read mdb or xls files. The ACE provider, on the hand, can read mdb, accdb, xls, xlsx, plus other formats.

    Also, it is best to specify complete path to you file in the Data Source property of your connection string.

提交回复
热议问题