Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 22nd, 2004, 07:08 AM
Registered User
 
Join Date: Jun 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Automating an access database

Hi,

Is it possible to get Access 2000 to perform tasks after you shut it down. For example : running queries or compacting the database.

Any help greatly appreciated

Cheers

Steve
 
Old June 22nd, 2004, 02:29 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Do you mean is it possible to access an Access database if it isn't open in a running instance of the Access application? If so, yes.

Bob

 
Old June 23rd, 2004, 01:23 AM
Registered User
 
Join Date: Jun 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Don't think so,

Say for example that some one has being keying in data. They finish, it saves. Then as they close the database down, before it completly closes, the database runs a couple of set queries that loads it to an excel doc, or up to the ftp server or runs the compact facility before access dissappears from the screen.

Can this still be done ????

Thanks

 
Old June 23rd, 2004, 05:54 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to qazi_nomi
Default

In any database when any transaction is going it allocate a flag to that record if it successfully complete then it wil be deleted other wise it delete uncomplete transaction

Love 4 all
 
Old June 23rd, 2004, 05:12 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Oh, I see.

Don't know about the queries, but I've seen a VBScript that can be called by your application as it closes to do the compact.

Google for:

CompactDB.vbs

and the function used to call it:

fHandleFile

Bob

 
Old June 23rd, 2004, 09:38 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Should probably also mention, if you aren't aware, that with A2K forward, 'Compact on Close' is a GUI property that can be set at Tools -> Options -> General Tab -> Compact on Close checkbox.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Automating Excel from Access Zaff VB.NET 2002/2003 Basics 6 May 11th, 2006 09:02 AM
javascript automating through excel... darkhalf Javascript 0 March 3rd, 2006 01:26 PM
Automating Assembly Trust Ron Howerton General .NET 1 October 20th, 2005 09:19 AM
Automating Outlook Task PC User Access VBA 0 March 6th, 2005 04:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.