Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crystal with VB 'How to change DataSource'
Message
De
31/10/2003 03:48:59
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Titre:
Crystal with VB 'How to change DataSource'
Divers
Thread ID:
00844839
Message ID:
00844839
Vues:
46
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
Répondre
Fil
Voir

Click here to load this message in the networking platform