Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using a recordset as a datasource for crystal reports
Message
From
08/05/2001 17:32:52
 
 
To
All
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Using a recordset as a datasource for crystal reports
Miscellaneous
Thread ID:
00505027
Message ID:
00505027
Views:
68
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
Next
Reply
Map
View

Click here to load this message in the networking platform