General information
Title:
Crystal with VB 'How to change DataSource'
Hi
Today i use vb with Crystal reports,if i change M_RS DataSource BUT Crystal reports not change
what's wrong?
this is my code
Option Explicit
Dim m_report As New CryRptPayData
Dim m_rs As New adodb.Recordset
Private Sub Form_Load()
m_rs.Open "SELECT * FROM PAYDATA WHERE cphm='ABCD12345'", ConnectionString,
m_report.DataBase.SetDataSource m_rs
CRViewer1.ReportSource = m_report
CRViewer1.ViewReport
End Sub
Thanks
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only