472,988 Members | 2,600 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,988 software developers and data experts.

Access file closes when program ends...why?

175 100+
I'm having a problem when I work with Access using VB6. I don't have a problem controlling Access, but I want the Access file to stay open when the program ends...but it always closes itself, and I don't know why. I stepped through my program, and it stays open literally until the second the program stops running. How can I get it to stay open and visible on the desktop...is there some trick to it?

it's really strange, I know I'm opening it correctly because I do other things with the file, and I've never had this problem when working with Excel or Powerpoint.
May 17 '07 #1
3 1266
Dököll
2,364 Expert 2GB
I'm having a problem when I work with Access using VB6. I don't have a problem controlling Access, but I want the Access file to stay open when the program ends...but it always closes itself, and I don't know why. I stepped through my program, and it stays open literally until the second the program stops running. How can I get it to stay open and visible on the desktop...is there some trick to it?

it's really strange, I know I'm opening it correctly because I do other things with the file, and I've never had this problem when working with Excel or Powerpoint.
Greetings and salutations, manontheedge!

Access is a whole different animal. When VB interacts with your Access back-end, that MS Access file (your Access database) must be closed. What you are seeing is completely normal. Additional calls to your back-end will reopen your MS Access database.

Have a good week-end!

Dököll
May 19 '07 #2
manontheedge
175 100+
I actually discovered a temporary solution. If I open a specific table before the program ends, then that Access file will stay open when the program ends, with that table being open. The only problem that presents is that once that table is closed the whole file is closed. Though, editing, viewing, whatever else can be done.
May 21 '07 #3
Dököll
2,364 Expert 2GB
I actually discovered a temporary solution. If I open a specific table before the program ends, then that Access file will stay open when the program ends, with that table being open. The only problem that presents is that once that table is closed the whole file is closed. Though, editing, viewing, whatever else can be done.
Hey thanks for sharing, I hadn't tried that...
May 23 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: RipTide | last post by:
Background: Using an unsupported/abandoned multi-user multi-database program that uses Access 97 and Jet 3.5. Program itself appears to have been built with PowerBuilder 6.5. Databases reside on...
6
by: Kenneth Courville | last post by:
Hello, I'm looking for assistance with the Access object model. I know this is VB, but I'm building an Office Add-using C# directed at Access 2002. I'm literate in VB, so you can reply in VB... I...
2
by: Avalanche | last post by:
Greetings all. I'm building a database (Access 2003) of applicants. Included in this database I would like to include the PDF applications for individuals in the database, accessable from a form...
2
by: Beejer | last post by:
I have a weird problem that I'm trying to solve but can't seem to find a solution at this time. My Access database closes completely when the "Else" of the VBA code is applicable. I'm running...
4
by: carson | last post by:
I have written two windows services: - service A does some crunching of local data files and uploads them to a central processing computer via http. - service B monitors a manifest file on a...
13
by: Owen Jenkins | last post by:
Following on from an earlier post... I can reliably corrupt a record by doing the following ... Open two separate but identical front ends on one PC each linking to the same back end. Edit a...
2
by: hturk | last post by:
I would like to open an existing spreadsheet in access and leave it running after the procedure ends. I was able to do this in Access 95-2002. With access 2003 it no longer works. I have tried...
3
by: ray well | last post by:
hi, i have a app which has a help file, *.hlp, which the user can launch within the program. i want the help file if it is open to close when the program exists. the way i did it till now is...
4
by: Chris | last post by:
I reference a DLL that was developed in VB 6.0 in MSAccess program & Excel add-in. When I close my Excel add-in, Excel closes without any problem. When I close my Access program, Access does not...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.