在编程中我遇到这样一个问题,在一个模态窗口中,我试着调用table1.open函数,打开数据集,但是报告出错,请问我该怎样才能在模态窗口中访问数据库?

解决方案 »

  1.   

    错误是这样的:
    Project ZJCMS.exe raised exception class EAccessViolation with message 'Accessviolation at address 0051CBOA in module 'ZJCMS.exe'.Read of address 00000058'.Process stopped.Used Step or Run to continue.
    我的调用语句是这样的:
    procedure TFlogin.bsSkinButton1Click(Sender: TObject);
    begin
    fdm.Tmanger.Open;
    fdm.Tmanger.Close;
    end;