Yes SQLserver with an access ADP 2003 frontend.
Regards,
Marc
> Yes SQLserver with an access ADP 2003 frontend.
You are creating a "firehose", a read-only, forward-only recordset. If the
procedure returns 0 rows, there would be nothing else you could do with
it -- can't insert, got no rows... nothing left to do but close it, so it
does that for you.
If you need a different kind of cursor, pass the command object to a
recordset as the source parameter (along with desired options.) If you just
need to detect that this is the case, test the recordset.State property; as
long as the recordset has been created, it will always be valid to
reference.
-Mark
> Regards,
> Marc
[quoted text clipped - 49 lines]
>>
>> -ralph
Karnifexx - 16 Dec 2006 15:50 GMT
Hey Mark,
Many thanks for that. Could you possibly elobrate what you mean
by 'pass the command object to a recordset as the source parameter'. I
have tried something similar to
sqlRS.Open command, connection etc
Regards,
Marc
> > Yes SQLserver with an access ADP 2003 frontend.
>
[quoted text clipped - 64 lines]
> >>
> >> -ralph
Mark McGinty - 16 Dec 2006 23:51 GMT
> Hey Mark,
> Many thanks for that. Could you possibly elobrate what you mean
> by 'pass the command object to a recordset as the source parameter'. I
> have tried something similar to
>
> sqlRS.Open command, connection etc
You must set the command.ActiveConnection to an already-opened connection
object, and omit the connection parameter when calling recordset.Open:
Set command.ActiveConnection = connection
sqlRs.Open command, , [other params]
-Mark
> Regards,
> Marc
[quoted text clipped - 78 lines]
>> >>
>> >> -ralph