Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Environment recordset problems...
Message
De
23/01/2003 14:53:47
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Data Environment recordset problems...
Divers
Thread ID:
00744832
Message ID:
00744832
Vues:
54
Hello,

My code below generates this error. "Object was open"

I dont understand this error. I am sure that checking the state and closing it if the state =1 should close the command.

Furthermore. I removed the state check code and proceeded to do this:
de.rscmdRetSite.close

I then received a message that my command is closed.
After which I tried to execute the select statemtent only to receive the
"Object was open" error again..



If de.rscmdRetSiteDet.State = 1 Then
de.rscmdRetSiteDet.Close
End If


de.rscmdRetSiteDet.Open "SELECT * FROM Site" & _
" WHERE customerID= '" & customerid & "'"

Any help would be appreciated.

Thank You,

Alvin
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform