I want to display a Client Statement using VB6 and Crystal Reports 8.5 with SQL Server 2000 database. I combine the invoice data from table tblInvoice with client details from table tblClient.
Private Sub Form_Load()
Dim strSQL As String
Dim Cmd As ADODB.Command
Dim conn As ADODB.Connection
Set Cmd = New ADODB.Command
Set conn = New ADODB.Connection
I hope by using 2 ADO, the report generating speed will improved.
23-06-2006 at 04:32 AM
|
yronium Level: Moderator Registered: 14-04-2002 Posts: 907
Re: Multiple ADO Commands or Query
Hello. I'm not deep into ADO Command object, but I'm afraid you can't. Yet, I wonder if you couldn't group the two SQL instructions into one single ADO Command. I often pass two SQL instructions together to get a recordset, like in here.
Hope it helps
____________________________
Real Programmer can count up to 1024 on his fingers
Well, i come across a feature call Subreport. I think what i want can be accomplished by using this feature. Since i never use subreport before, i think i will do a research on it. Thanks for reply.