使用c#代码插入后,无法读取访问DB中的信息 [英] Can't read information in access DB after using c# code to insert

查看:81
本文介绍了使用c#代码插入后,无法读取访问DB中的信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

This error occurs when an event has failed to run because the location of the logic for the event cannot be evaluated. For example, if the OnOpen property of a form is set to =[Field], this error occurs because a macro or event name is expected to run when the event occurs.





抱歉我的英文:)



我的公司有一个工具,它在访问2003中编码(文件扩展名为.mde),我需要输入太多,所以我找到了解决方案,我发现这个db .mdb文件扩展名 - 可以轻松访问而无需任何密码,我在gg上搜索并学习如何插入到db访问

i成功插入数据库对象,但.mde遇到问题,打开它(我猜)上面的消息



请帮助我,我不知道如何修复它



sorry about my english :)

my company has a tool which was coded in access 2003 (File Extension is .mde), day by day i have to type too much so i find a solution, and i figured out that this db .mdb file extension - can be easily accessing without any password, i search on gg and learn how to insert to db access
i was successfull insert into db object but .mde got problem while open it (i guess) with above message

pls help me, i dont know how to fix it

推荐答案

如果您的意思是您已经使用了与Access 2003一起使用的.MDE文件,并将其更新为带有更高版本驱动程序的.MDB文件,然后很可能是文件已被破坏或转换为更高版本 - 从该角度来看e 2003应用程序是一回事。

想想看:如果你买了一辆14岁的福特嘉年华,你会期望2016款车型的发动机部件能够换成吗?当然不是 - 从那以后设计发生了很大的变化。文件是相同的:您可以使用更高版本的驱动程序读取它,但它写的版本将不再与早期软件兼容。



I强烈建议您从备份中恢复原始.MDE文件,然后使用输入方式生效,或者将应用程序更新为更高版本。
If you mean that you have taken an .MDE file that works with Access 2003, and updated it as an .MDB file with a later driver, then the chances are that the file has been corrupted or converted to the later version - which from the point of view of the 2003 application is the same thing.
Think about it: if you buy a 14 year old Ford Fiesta, would you expect the engine parts from a 2016 model to swap right in? Of course not - the design has changed a lot since then. The file is the same: You may be able to read it with a later version driver, but the version it writes will no longer be compatible with earlier software.

I'd strongly suggest that you restore the original .MDE file from a backup, and then either live with the typing, or update the application to a later version.


这篇关于使用c#代码插入后,无法读取访问DB中的信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆