borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (access files properties)Next Topic (timer) New Topic New Poll Post Reply
AndreaVB Forum : VB General : releasing an adodc Solved Topic
Poster Message
boit
Level: Scholar

Registered: 28-04-2005
Posts: 42

icon releasing an adodc

Greetings everyone!

with adodc1
   .connectionstring = pConnection
   .recordsource = "select * from table"
   .refresh
end with
set datagrid1.datasource = adodc1

the above set of commands work for me.
the question is, how do i clear the contents of the adodc1?

i tried setting the pConnection = nothing and
setting the datagrid1.datasouce = nothing

but i guess it did not do the trick

i am having problems with memory management because the ado eats up a lot of data space

please help. thanks

21-03-2006 at 04:04 AM
View Profile Send Email to User Show All Posts | Quote Reply
hotsports
Level: Protégé

Registered: 18-03-2006
Posts: 7
icon Re: releasing an adodc

im a real novice at vb but have u tried

datagrid1.datasouce = 0

or

datagrid1.datasouce = ""

____________________________
[IMG]http://tinypic.com/m7b5tg.jpg[/IMG]

21-03-2006 at 06:06 AM
View Profile Send Email to User Show All Posts | Quote Reply
GeoffS
Level: VB Lord


Registered: 29-09-2004
Posts: 536
icon Re: releasing an adodc

Adodc1.Recordset.Close


____________________________
multi-tasking - the ability to hang more than one app. at the same time.

21-03-2006 at 09:00 AM
View Profile Send Email to User Show All Posts | Quote Reply
boit
Level: Scholar

Registered: 28-04-2005
Posts: 42
icon Re: releasing an adodc

thanks to both of you.

23-03-2006 at 08:17 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : releasing an adodc Solved Topic
Previous Topic (access files properties)Next Topic (timer) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder