PC Review


Reply
Thread Tools Rate Thread

Compact a secured db

 
 
Connie
Guest
Posts: n/a
 
      27th Jul 2005
I have used a db that opens a form where you enter the full path, including
db name that you want to compact. It works fine as long as the db you are
compacting is not secured. The code is using the CompactDatabase method of
the DBEngine
object. I tried passing the full path including /wrkgrp "path to mdw" (like
you would in a shortcut) to the olddb part of the syntax but I get "Not a
valid filename". Any suggestions on how to compact via code?

BTW, this was created back in Access97 but has been converted up to XP.

TIA
Connie



 
Reply With Quote
 
 
 
 
Joan Wild
Guest
Posts: n/a
 
      27th Jul 2005
"Connie" <(E-Mail Removed)> wrote in message
news:FQSFe.7$(E-Mail Removed)...
>I have used a db that opens a form where you enter the full path, including
> db name that you want to compact. It works fine as long as the db you are
> compacting is not secured.


Actually it works if you are joined to the right workgroup. So you can
start a session of Access, where you login using the correct mdw. Then open
your db/form and you should be able to compact just fine.




--
Joan Wild
Microsoft Access MVP


 
Reply With Quote
 
Connie
Guest
Posts: n/a
 
      28th Jul 2005
Thank you Joan that worked great!!

"Joan Wild" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Connie" <(E-Mail Removed)> wrote in message
> news:FQSFe.7$(E-Mail Removed)...
> >I have used a db that opens a form where you enter the full path,

including
> > db name that you want to compact. It works fine as long as the db you

are
> > compacting is not secured.

>
> Actually it works if you are joined to the right workgroup. So you can
> start a session of Access, where you login using the correct mdw. Then

open
> your db/form and you should be able to compact just fine.
>
>
>
>
> --
> Joan Wild
> Microsoft Access MVP
>
>



 
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
SSL secured webservice (stummel) and Compact Framework? Enrico Pavesi Microsoft Dot NET Compact Framework 0 19th Feb 2007 05:08 PM
HTTPS : Secured and non secured item with absolute path trihanhcie@gmail.com Windows XP Internet Explorer 1 15th May 2006 05:16 PM
HTTPS : Secured and non secured item with absolute path trihanhcie@gmail.com Microsoft ASP .NET 1 15th May 2006 02:24 PM
TransferDatabase error from secured DB to another secured DB rdemyan via AccessMonster.com Microsoft Access 0 19th Apr 2006 06:08 PM
Need code to compact a secured database Tim Microsoft Access VBA Modules 9 2nd Oct 2003 10:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:07 AM.