﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Classic Visual Basic (VB 6 or earlier) / Database Programming  / Access Database error 3709 heeeeeeeelp / Latest Posts</title><generator>InstantForum.NET v4.1.1</generator><description>A1VBCode Forums</description><link>http://www.a1vbcode.com/vbforums/</link><webMaster>forums@a1vbcode.com</webMaster><lastBuildDate>Thu, 17 May 2012 02:10:53 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Access Database error 3709 heeeeeeeelp</title><link>http://www.a1vbcode.com/vbforums/Topic9396-4-1.aspx</link><description>No need to close the db once the form is close. Just close the db every after query. e.g.&lt;br&gt;&lt;br&gt;rs.open "Select * from Db"&lt;br&gt;'Code Here&lt;br&gt;&lt;br&gt;rs.close&lt;br&gt;&lt;br&gt;But dont forget to close the connection once the form is close e.g.&lt;br&gt;&lt;br&gt;Private Sub cmd_Exit()&lt;br&gt;cnn.close&lt;br&gt;End Sub&lt;br&gt;&lt;br&gt;&lt;br&gt;Hope this helps..&lt;br&gt;&lt;br&gt;regards,&lt;br&gt;james&lt;br&gt;&lt;br&gt;</description><pubDate>Thu, 07 Apr 2005 21:31:06 GMT</pubDate><dc:creator>James_1100</dc:creator></item><item><title>RE: Access Database error 3709 heeeeeeeelp</title><link>http://www.a1vbcode.com/vbforums/Topic9396-4-1.aspx</link><description>&lt;P&gt;thank you very much&lt;/P&gt;&lt;P&gt;I want to ask you. &lt;/P&gt;&lt;P&gt;Should I must to close connection to My Database after closing every form (if I oprn database in this form) or not and if i Wrote rec.close&lt;/P&gt;&lt;P&gt;rec.close&lt;/P&gt;&lt;P&gt;set rec=nothing is enough to close connection to my database or not&lt;/P&gt;&lt;P&gt;And what is best way to close connection to database &lt;/P&gt;&lt;P&gt;bacause my program is still present in memory after closing the program&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;Sorry for my bad English&lt;/P&gt;</description><pubDate>Wed, 06 Apr 2005 08:31:14 GMT</pubDate><dc:creator>Sco2004</dc:creator></item><item><title>RE: Access Database error 3709 heeeeeeeelp</title><link>http://www.a1vbcode.com/vbforums/Topic9396-4-1.aspx</link><description>Good thing i help&lt;br&gt;&lt;br&gt;regards,</description><pubDate>Tue, 29 Mar 2005 00:10:24 GMT</pubDate><dc:creator>James_1100</dc:creator></item><item><title>RE: Access Database error 3709 heeeeeeeelp</title><link>http://www.a1vbcode.com/vbforums/Topic9396-4-1.aspx</link><description>That Helps  &lt;br&gt;Many Thanks&lt;br&gt;: Chippy &lt;br&gt;</description><pubDate>Thu, 17 Mar 2005 23:21:12 GMT</pubDate><dc:creator>Chippy</dc:creator></item><item><title>RE: Access Database error 3709 heeeeeeeelp</title><link>http://www.a1vbcode.com/vbforums/Topic9396-4-1.aspx</link><description>Hai..&lt;br&gt;&lt;br&gt;once you close the connection, you cannot open the database that's why you got error. You can do it this way after the query:&lt;br&gt;&lt;br&gt;          rs.Close&lt;br&gt;          Set rs = Nothing&lt;br&gt;&lt;br&gt;Hope this helps..&lt;br&gt;&lt;br&gt;regards&lt;br&gt;</description><pubDate>Wed, 16 Mar 2005 21:34:01 GMT</pubDate><dc:creator>James_1100</dc:creator></item><item><title>Access Database error 3709 heeeeeeeelp</title><link>http://www.a1vbcode.com/vbforums/Topic9396-4-1.aspx</link><description>Hi all&lt;br&gt;&lt;br&gt;I have an application with a data environment on that has a  connection object with a load of commands which all works fine ,&lt;br&gt;&lt;br&gt;However I want to close the connection in order to make a backup of the access database which I can do,&lt;br&gt;but the problem is that when I reopen the connection and try and access data thru 1 off the command objects I get the 3709  error Operation not allowed on an object referencing a closed or invalid connection,&lt;br&gt;&lt;br&gt;we have tried checking the connection state so we can take the appropriate acction depending on it's state but no good we have also tried changing the connection string but this doe's not seem to have any effect either, so at the moment we are up a gum tree &lt;br&gt;&lt;br&gt;anybody any Ideas ? &lt;br&gt;&lt;br&gt;&lt;br&gt;any help would be welcome thanks&lt;br&gt;&lt;br&gt;Chippy&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Fri, 11 Mar 2005 11:27:33 GMT</pubDate><dc:creator>Chippy</dc:creator></item></channel></rss>
