PC Review


Reply
Thread Tools Rate Thread

Closing another database with VBA

 
 
Gaetan
Guest
Posts: n/a
 
      4th Feb 2008
Hi,

I’m having a problem with the code to do the following…

1- A user opens a file called Core.
2- Upon opening the splash screen (on the Form_Load event), it compares a
version number it finds within the database to one that is in another
database called Data.
3- If the versions are different, the Core file opens the Updater file.
4- The Updater file closes the Core file.
5- The Updater file copies the latest version of the Core file (located
somewhere else) and replaces the first one with the latest version.
6- The Updater opens the newly copied Core file.
7- The Updater closes itself.

I have no problem with point 1 through 3. Where I have a problem is I need
the Update to close the Core file. I know of CloseCurrentDatabase, but I
don’t want to close the current one (which is the Updater), but the Core file.

Anyone can help with this?

Thanks in advance.

 
Reply With Quote
 
 
 
 
Stefan Hoffmann
Guest
Posts: n/a
 
      5th Feb 2008
hi,

Gaetan wrote:
> I have no problem with point 1 through 3. Where I have a problem is I need
> the Update to close the Core file. I know of CloseCurrentDatabase, but I
> don’t want to close the current one (which is the Updater), but the Core file.
> Anyone can help with this?

Use any of the available frontend updaters (e.g.
http://www.granite.ab.ca/access/autofe.htm ) out there or write your own
as VBScript.


mfG
--> stefan <--
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
closing database =?Utf-8?B?bWhtYWlk?= Microsoft Access Form Coding 2 26th Jan 2007 03:51 AM
closing another database =?Utf-8?B?THVpcw==?= Microsoft Access VBA Modules 1 30th Mar 2006 10:29 PM
RE: VBA for Closing Database =?Utf-8?B?RnJhbmsgV2FnbmVy?= Microsoft Access Form Coding 0 22nd Sep 2005 05:23 PM
Multiple OutputTo (Called on Closing Form) Fails on Closing Database John Andrews Microsoft Access Macros 3 21st May 2004 08:54 AM
Closing database in VB .Net Vegar Hansen Microsoft VB .NET 1 31st Oct 2003 08:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:39 PM.