Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal with VB 'How to change DataSource'
Message
From
31/10/2003 03:48:59
 
 
To
All
General information
Forum:
ASP.NET
Category:
Reporting
Title:
Crystal with VB 'How to change DataSource'
Miscellaneous
Thread ID:
00844839
Message ID:
00844839
Views:
45
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
Map
View

Click here to load this message in the networking platform