主题:dbedit的问题!!!请高手赐教!!!!
我用ADOconnection连数据库(ACCESS),ADOquery跟ADOconnection连(ADOconnection和ADOquery在datamodule中),窗体上有dbedit,用DataSource跟ADOquery连,数据库连接测试成功,并且程序没执行前在dbedit中已经显示出了数据库中表对应字段的信息,但执行后dbedit却没有任何显示.
问题1:这是为什么??????
问题2:在按扭单击事件中添加语句:
dbedit1.Text:=inttostr(datamodule2.adoquery1.RecordCount+1);
dbedit2.SetFocus;
点击按钮后程序报错如下:project **** raised exception class EAccessViolation with message 'Access violation at address 0049D32D in module '****'.Read of address 00000060'.Process stopped.Use Step or Run to continue.(****为工程名)
问题1:这是为什么??????
问题2:在按扭单击事件中添加语句:
dbedit1.Text:=inttostr(datamodule2.adoquery1.RecordCount+1);
dbedit2.SetFocus;
点击按钮后程序报错如下:project **** raised exception class EAccessViolation with message 'Access violation at address 0049D32D in module '****'.Read of address 00000060'.Process stopped.Use Step or Run to continue.(****为工程名)