Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using a recordset as a datasource for crystal reports
Message
De
08/05/2001 17:32:52
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Using a recordset as a datasource for crystal reports
Divers
Thread ID:
00505027
Message ID:
00505027
Vues:
67
I'm new to VB so I may be going about this all wrong, but here's what I want to do and the problem I'm having. I have a form that creates a recordset from a SQL stored procedure. I want to use this recordset as a datasource for a crystal report. Here's the command I use to create the recordset

rstletter.Open "custlett ('" & Trim(job) & " ')", _
g_objConn, adOpenDynamic, adLockOptimistic, adCmdStoredProc

I get the error "error detected by database DLL" when it attempts to run the following line of code.

Report.Database.AddADOCommand rstletter.ActiveConnection, rstletter.ActiveCommand

Any ideas?

TIA

Kris
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform