14e55 Compact and repair Back End From Front End at Runtime
Sign Up |  Live StatsLive Stats    Articles 37,318| Comments 177,167| Members 19,407, Newest Jasbirsuropada| Online 547
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Sikh Philosophy Network » Sikh Philosophy Network » Current News » Information Technology » Compact and repair Back End From Front End at Runtime

Compact and repair Back End From Front End at Runtime

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Can't Compact&Repair - corrupt table (help!) Andy C Matthews Information Technology 2 28-Jul-2006 08:39 AM
Compact & Repair Question StuJol Information Technology 2 28-Jul-2006 08:37 AM
Unattended Compact Repair CaptainBly Information Technology 2 28-Jul-2006 08:26 AM
Compact and repair MSysCompactError okschlaps Information Technology 0 28-Jul-2006 08:12 AM
Compact and Repair with Access 2003 Runtime Ron Hinds Information Technology 2 28-Jul-2006 08:02 AM


Tags
back, compact, end, front, repair, runtime
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:03 AM
bobdydd's Avatar bobdydd
Guest
 
Posts: n/a
   
   
Compact and repair Back End From Front End at Runtime

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi Everybody

For Microsoft Access 2000 and above
Windows XP

I am trying to mimic the action of this command that at the moment runs
from the start>>all programs at the bottom left of the screen.

"C:\Program Files\Microsoft Office\ART\Office\MSACCESS.EXE" _
/excl /runtime /profile "MYDB" /wrkgrp _
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/9515-compact-repair-back-end-front-end.html
"C:\Program Files\Stortvalley\MYDB2\system.mdw" _
/repair "C:\Program Files\Stortvalley\MYDB2\MYDB2_Be.mdb" /compact

The idea is to be able to compact and repair the Backend database from
a command button on the Front End mde on a machine that has not got
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9515
full version Microsoft Access on it.....just the ART (Access Run Time)

Thanks for any help

Bob



Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:03 AM
Douglas J. Steele's Avatar Douglas J. Steele
Guest
 
Posts: n/a
   
   
Re: Compact and repair Back End From Front End at Runtime

Use the CompactDatabase method of the DBEngine.

What I typically do is rename the existing backend, putting in today's date
and changing the extension to .bak. I then compact that to the "correct"
database. That way, I have a backup as well.

Dim strCurrentBackend As String
Dim strRenamedBackend As String

strCurrentBackend = .....
strRenamedBackend = Left$(strCurrentBackend, Len(strCurrentBackend) - 4)
& _
Format$(Date(), "yyyymmdd") & ".bak"

Name strCurrentBackend As strRenamedBackend

DBEngine.CompactDatabase strRenamedBackend, strCurrentBackend


I've left out how to determine where the current backend is, but it's pretty
straightforward. One way is to check the Connect roperty of a linked table,
and strip off the ";DATABASE=" from the front of it:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9515

strCurrentBackend = Mid$(CurrentDb().TableDefs("MyLinkedTable").Connect,
11)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9515
(no private e-mails, please)


"bobdydd" wrote in message
news:1147433910.887517.32110@i39g2000cwa.googlegro ups.com...
> Hi Everybody
>
> For Microsoft Access 2000 and above
> Windows XP
>
> I am trying to mimic the action of this command that at the moment runs
> from the start>>all programs at the bottom left of the screen.
>
> "C:\Program Files\Microsoft Office\ART\Office\MSACCESS.EXE" _
> /excl /runtime /profile "MYDB" /wrkgrp _
> "C:\Program Files\Stortvalley\MYDB2\system.mdw" _
> /repair "C:\Program Files\Stortvalley\MYDB2\MYDB2_Be.mdb" /compact
>
> The idea is to be able to compact and repair the Backend database from
> a command button on the Front End mde on a machine that has not got
> full version Microsoft Access on it.....just the ART (Access Run Time)
>
> Thanks for any help
>
> Bob
>



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:03 AM
bobdydd's Avatar bobdydd
Guest
 
Posts: n/a
   
   
Re: Compact and repair Back End From Front End at Runtime

  Donate Today!  
Hi Doug

As always you get me out of trouble ...................Thanks
I have not tried it on a machine without Full version Access installed
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9515
(just the ART) but I reckon it will work.
I altered it slightly to put the Backups it a different directory

Once again Thanks a lot

Bob

Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
How does Sikhi help you...
Today 22:59 PM
19 Replies, 785 Views
What Do You Think of...
Today 22:56 PM
39 Replies, 679 Views
Losing My Religion: Why...
Today 22:47 PM
6 Replies, 142 Views
30 Day Amrit Vela -...
Today 22:42 PM
44 Replies, 497 Views
How Religions Change...
Today 19:33 PM
0 Replies, 41 Views
Do you believe in...
Today 12:00 PM
184 Replies, 3,878 Views
Thought of the Moment!
Today 10:07 AM
109 Replies, 5,135 Views
Amrit
Today 09:17 AM
5 Replies, 361 Views
What I believe Hukam to...
Today 03:15 AM
13 Replies, 171 Views
Should SPN Keep the...
Today 02:02 AM
19 Replies, 606 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:46 AM
304 Replies, 7,492 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 01:18 AM
173 Replies, 4,409 Views
Student Compares Toilet...
Today 01:05 AM
1 Replies, 98 Views
Map shows world's 'most...
Yesterday 18:58 PM
16 Replies, 290 Views
BHOOTS (Ghosts) and...
Yesterday 13:08 PM
102 Replies, 13,896 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 23:42 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.66534 seconds with 32 queries
0