Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Closing Access97  Tables

Posted on 1998-07-24
3
Medium Priority
?
163 Views
Last Modified: 2010-05-03
When you exit a complied VB5 app does VB automatically close the DB and all of its open tables and recordsets? It is my understanding that everything is closed and cleaned-up automatically. If this is not true what is the safest method to close an app that uses several Access97 databases?
Thanks
0
Comment
Question by:Ddan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 1

Expert Comment

by:web_crusher
ID: 1466636
Vb5 do closes all db at the end but you never know where
the next microsoft bug will occur - i always close my db with several metodes like : data1.Recordset.Close
and data1.refresh

try looking in recordset help - there are several ways - and they all good for multi database operations

Do not Plan on depending on other application to close your db
remmember - a db is very important to a program and system
handle it yourself !!
0
 
LVL 1

Expert Comment

by:web_crusher
ID: 1466637
after rejection a comment of yours should be added!
0
 
LVL 2

Accepted Solution

by:
dabellei earned 200 total points
ID: 1466638
Exiting the application close all database.  But it is always a good idea to close database before exiting a program.

dim db as database
set db = opendatabase("....")


close.db


Don'T forget you have to close all object before closing the database, like recordset.

Hope this help
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question