strReportFile = gRptPath
rpt.Connect = gstrConnect
strQuery = "查询语句"
rpt.ReportFileName = strReportFile
rpt.SelectionFormula = strQuery
rpt.Action = 1
rpt.Connect = gstrConnect
strQuery = "查询语句"
rpt.ReportFileName = strReportFile
rpt.SelectionFormula = strQuery
rpt.Action = 1
rpt.Connect = gstrConnect
strQuery = "查询语句"
rpt.ReportFileName = strReportFile
rpt.SelectionFormula = strQuery
rpt.Action = 1
上面的‘rpt.SelectionFormula=’后面能加上如select * from *的sql语句吗??好象不能呀!!
还有一个rpt.SelectionFormula和rpt.sqlquery属性有什么区别呀??