D
David Wessell
Hi..
I'm trying to work out the syntax for having multiple SQL queries..
I'm connecting to a Firebird DB using ADO.
What I'm attempting to do is something like this:
Dim rs As New ADODB.Recordset
Dim rs1 As New ADODB.Recordset
rs.Open "QUERY Goes here", dbMain, adOpenKeyset, adLockPessimistic
While Not rs.EOF
//Do stuff with result
rs1.Open"Query using rs(0) as a variable, dbMain, adOpenKeyset,
adLockPessimistic
rs.MoveNext
Wend
I'm getting run time errors, that would lead me to believe I'm doing
this the wrong way. Do I need to create a second recordSet? Can I use
rs(0) as a variable in that new query?
Thanks
David
I'm trying to work out the syntax for having multiple SQL queries..
I'm connecting to a Firebird DB using ADO.
What I'm attempting to do is something like this:
Dim rs As New ADODB.Recordset
Dim rs1 As New ADODB.Recordset
rs.Open "QUERY Goes here", dbMain, adOpenKeyset, adLockPessimistic
While Not rs.EOF
//Do stuff with result
rs1.Open"Query using rs(0) as a variable, dbMain, adOpenKeyset,
adLockPessimistic
rs.MoveNext
Wend
I'm getting run time errors, that would lead me to believe I'm doing
this the wrong way. Do I need to create a second recordSet? Can I use
rs(0) as a variable in that new query?
Thanks
David