A
Adam Maltby
Hi,
I am using vb.net and sql2000.
I am running a sql statement using a udl to connect to the database.
Throuhg one sub, several sql statements are executed against the udl's cn and I just reuse the rs to hold the next result set.
My problem is that through a few statements this works fine - I can use "With rs" and set up a cycle to loop through the rs to confirm data returned. But when I reach one of them (they are the same except for the sql statement passed) the rs closes unexpectedly and I cannot see the data within it hence it then returns an error stating the rs is closed.
Any ideas why it might be doing this? I am not telling the rs too clsoe anywhere in my code (yet).
Cheers
Adam
I am using vb.net and sql2000.
I am running a sql statement using a udl to connect to the database.
Throuhg one sub, several sql statements are executed against the udl's cn and I just reuse the rs to hold the next result set.
My problem is that through a few statements this works fine - I can use "With rs" and set up a cycle to loop through the rs to confirm data returned. But when I reach one of them (they are the same except for the sql statement passed) the rs closes unexpectedly and I cannot see the data within it hence it then returns an error stating the rs is closed.
Any ideas why it might be doing this? I am not telling the rs too clsoe anywhere in my code (yet).
Cheers
Adam
ath\to\the\udl\file.udl"