两个窗体:Form1,Form2。Form1中有Query1,DataSource1,RxDBGrid1。在Form2中实现预览,使用FastReport。预览的数据为前一窗体中查询到的数据(即RxDBGrid1中现实的数据)。为实现这一目的,在Form2中写代码:Form2.DataSource1.dataset:=Form1.query1;
执行后,出现错误提示:
Project Dfq.exe raised exception class EAccessViolation with message'Access violation at address 00534472 in module'Dfq.exe'.Read of address 000002D8'.Process stopped.Use Step or Run to continue.请教高手这是怎么回事?我应该怎么做才能在From2中预览到Form1中查询出来的数据?感谢