|
-
August 13th, 1999, 08:12 AM
#1
ADO Commands
Greetings -
I have a parameterized ADO command. For this project, the command is part of a data environment that I set up.
I'm having a problem re-running the command with a new parameter. The first time I run it, no problem. The second time I run it (with a new parameter), I get an error along the lines of "this action cannot be completed with an object that's already open." Question is - how do I close it?
Here's the syntax:
envDJ.cmdGetOneStudent(temp_id)
Thanks in advance.
-
August 16th, 1999, 07:04 AM
#2
Re: ADO Commands
if your command returns a result set, you should close that after reading all the rows.
envDJ.cmdGetOneStudent
do while not envDJ.rscmdGetOneStudent
...
Loop
envDJ.rscmd...close
-
August 16th, 1999, 08:10 AM
#3
Re: ADO Commands
Try setting command=nothing.
John Kisner
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|