PC Review


Reply
Thread Tools Rate Thread

close all access application

 
 
balu
Guest
Posts: n/a
 
      27th Oct 2008
Dear friends,
in access 2003 Pass word protected
how to close (all running, or other databases i want ) from another .mdb or
from VB6 file

i am using this code but not working.

DIM dbs as database
dim oacc as new access.application

for each dbs in oacc.dbengine.workspaces(0).databases
dbs.close
next
end sub
this code i used both from with in access and VB6
but not yielding ,
any help please if any damo/ link will help me great

 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      27th Oct 2008
Hi,
try to use this approach:
http://www.mvps.org/access/api/api0025.htm

--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com


"balu" <(E-Mail Removed)> wrote in message
news:3CAD80E7-7384-4623-8B98-(E-Mail Removed)...
> Dear friends,
> in access 2003 Pass word protected
> how to close (all running, or other databases i want ) from another .mdb
> or
> from VB6 file
>
> i am using this code but not working.
>
> DIM dbs as database
> dim oacc as new access.application
>
> for each dbs in oacc.dbengine.workspaces(0).databases
> dbs.close
> next
> end sub
> this code i used both from with in access and VB6
> but not yielding ,
> any help please if any damo/ link will help me great
>

 
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
Close an access application Jose Microsoft Access Form Coding 2 18th Sep 2008 08:04 PM
Close a Application from Access =?Utf-8?B?TWFya3Vz?= Microsoft Access Form Coding 1 25th Nov 2007 08:32 PM
[Access 2007] Problem to disable the Close Button (X) on the Access Application Window David Berthemet Microsoft Access 0 28th Feb 2007 11:33 AM
Access.Application.Quit - opens Access again then won't close - He =?Utf-8?B?SGx1aGx1d2U=?= Microsoft Excel Programming 0 30th Jan 2006 11:17 AM
close Access application Matex Microsoft VB .NET 0 12th Aug 2004 01:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:34 PM.