急,VB调用水晶报表 老提示 内存错误

nicho123456 2012-09-05 02:14:29
Set m_report = m_application.OpenReport(App.Path & "\mrpreport.rpt", 1)
m_report.Database.SetDataSource rstprod
m_report.ReadRecords

frmreport.CRViewer.ReportSource = m_report
frmreport.CRViewer.Visible = True
frmreport.CRViewer.Zoom 1
Screen.MousePointer = vbDefault
frmreport.CRViewer.ViewReport
frmreport.Show 1
Set mainRS = Nothing
Exit Sub

这样调用 运行的时候rstprod里也有值, 一运行就提示“ 应用程序出错,0x07694842"指令引用的"0x0000004"内存,该内存不能为"read"
要终止程序,请单击"确定"
要调试程序,请单击取消

这是什么问题啊???
...全文
118 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ucandoit1010 2012-09-16
  • 打赏
  • 举报
回复
是否報表裡有設定參數欄位,程式碼沒有賦值!
xxxuan 2012-09-14
  • 打赏
  • 举报
回复
重装系统,有病毒

4,820

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 图表区
社区管理员
  • 图表区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧