怎么动态生成adotable并连接呢?
以下是我在Button1里面写的事件,动态连接的
ADOTable1->ConnectionString =(WideString)"Provider=MSDASQL.1;Persist Security Info=False;Data Source=MillingCutter";
ADOTable1->TableName =(WideString)"LibInfo";
ADOTable1->Active =true;
提示有这样的错误“coulde not conver variant of type(NULL) into type (String) ”
但是可以显示出数据来,请问这是为什么呢?
如果我把这些设置直接放设计的时候就没有错误~~~
我要写一个类,里面自动到ACCESS文件里面取数据,然后没有界面和窗体的,怎么动态生成ADOTABLE呢