我在adoconnection属性的connectionstring中直接指定数据源,运行没有错,现在我想动态连接,有可能要改变数据库路径。但是我把那个连接字符串copy到主窗体的create事件中写上
fr_search.adoconnection1.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source=G:\数据库可视化\data\数据库分类统计.mdb;Persist Security Info=False';
系统就报错,“project main.exe raised exception class eaccessviolation with message 'access violation at address 0051D379 in module' main.exe'....”
望高手指点迷津!
fr_search.adoconnection1.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source=G:\数据库可视化\data\数据库分类统计.mdb;Persist Security Info=False';
系统就报错,“project main.exe raised exception class eaccessviolation with message 'access violation at address 0051D379 in module' main.exe'....”
望高手指点迷津!
放在主窗体之后试一试!