水晶报表在连接mdb(表为:T1)文件时能否有选择条件?例如:只连接t1.code=’1’的内容. 水晶报表在连接mdb(表为:T1)文件时能否有选择条件?例如:只连接t1.code=’1’的内容. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 水晶报表.datasour=rsrs 是一個有有條件的SQL語句如AdoRs.Open SqlStr, Cn1, adOpenKeyset, adLockReadOnly ', adLockBatchOptimistic Dim m_Report As CrysRNewJob Set m_Report = New CrysRNewJob Me.MousePointer = vbHourglass m_Report.Database.SetDataSource AdoRs m_Report.Database.Verify CRViewer1.ReportSource = m_Report CRViewer1.ViewReport 你可以这样做: m_Report.RecordSelectionFormula = "{t1.code} = '1'" CRViewer1.Refresh 当不需要时改为: m_Report.RecordSelectionFormula = "" 编译后的程序不能执行 如何用vb读取部分word文字,并将其输出到excel文件中 怎摸让一个图标或image转起来? VB6的报表DataReport显示速度问题 求连接访问ORCAL数据库的代码 郁闷~~在VB版里发了几个帖子问题都没有解决,再发一帖~~~第一次到这面很受打击~~~~ 我把一个窗口borderstyle 设置为0 任务栏怎么没有标题阿 vb应用程序运行问题?高手请进! 关于从ListBox向文本文件写值的问题 关于加密 如何读取远程FTP服务器上文件的大小? 请问如何将DATAGRID中的一列设为只读?
rs 是一個有有條件的SQL語句
如
AdoRs.Open SqlStr, Cn1, adOpenKeyset, adLockReadOnly ', adLockBatchOptimistic
Dim m_Report As CrysRNewJob
Set m_Report = New CrysRNewJob
Me.MousePointer = vbHourglass
m_Report.Database.SetDataSource AdoRs
m_Report.Database.Verify
CRViewer1.ReportSource = m_Report
CRViewer1.ViewReport
m_Report.RecordSelectionFormula = "{t1.code} = '1'"
CRViewer1.Refresh
当不需要时改为:
m_Report.RecordSelectionFormula = ""