General :: Compact On Close - Back End?

Apr 3, 2015

I currently manually run a compact and repair on the backend of a database at work, but was wondering if it might be sensible to set it to compact on close so that (in theory) it is done at least daily and therefore shouldn't take much time?

The back end resides on a network server, which is backed up continuously, so in theory it should be easy enough to roll back to a backup copy should anything untoward happen.

View Replies


ADVERTISEMENT

General :: Switch Off Compact On Close

Dec 25, 2014

I am using Access 2010.

Under options, current database I have DESELECTED "compact on close"

Still all my databases are compacting on close. How can I prevent Access to compact on close?

Problem is that we work under Citrix and sometimes things happens with Citrix that they have to reboot all the servers.

The databases tries to close and compact and don't get enough time, so I get mdb copies.

Besides I recently had only the compacted database1.mdb while my file Name.accdb was gone, so again the compact was wrong.

View 3 Replies View Related

General :: How To Use Access 2010 Setting Compact On Close

Apr 17, 2013

How would I use the Access 2010 setting, 'Compact on close'?We have a back end on a server and many users with front ends on their computers. So would I set 'Compact on close' on the back end? And then it would compact when the last user logged out?

View 3 Replies View Related

Compact On Close

Apr 19, 2007

Hi,

I apply Compact On Close (Tools->Option->General tab). So, every time, it will compact the database when closing the file.
However, will it do repair the database automatically? It seems just do compacting.

View 1 Replies View Related

Can You Compact On Close In Access 2000 Runtime?

Jan 4, 2006

Can you compact on close in an access 2000 runtime enviorment?

Also, if i select the option to compact on close will it work on every computer i copy this database to? Or is it a property of that computer?

View 1 Replies View Related

Tables :: Compact On Close Drops Several Indexes

Oct 5, 2012

I cannot cause a database to refrain from dropping several table indices during a Compact on Close operation. I am running Access 2010 under Windows xp.I have created a database that merges data in a linked text file with data in a linked database, appending the results in a local table. The database has the Compact on Close option set. The table has 27 indices (because most of the fields either are coded or are potential select or sort fields) and nearly 1 million records.

I run a delete query to clear the contents of the table, I close (and compact) the database, I reopen the database, and I run the append query. The indices in the target table are intact. I close (and compact) the database again; when I reopen the database, indices are missing -- sometimes about 10, other times nearly two dozen!

This table is linked to a larger system, which contains code to run the sequence outlined above. Whether run manually or in code, as stand-alone or as a component, indices are dropped. When I close the database with the table containing no records, the indices are not affected. After appending records, but before closing, the database contains 1.66GB. The drive on which the database resides has 42GB free.As suggested with regard to a number of other unexplainable issues, I have created a new database and imported all objects from the original database. The results persist. The larger system performs accurately without the indices, but the performance against a table this massive is horrible.

View 8 Replies View Related

Modules & VBA :: Compact And Close Database With Delay - Access 2007

Feb 12, 2014

"how to COMPACT the DB by introducing delay of 10 seconds and then close the DB".In the Database, I'm able to accomplish the "Compact" the database using the function below.

Function Compact()
SendKeys "%(FMC)", False
End Function

As my DB is quite huge, the Compact action takes around 10 seconds to complete.Now, i would like to Close the Database after Compacting the DB. I tried including "DoCmd.Quit" in the function. The commands in the function, closes the DB but the Compact function doesn't seem to have executed as it needs 10 seconds to complete.

Function Compact()
SendKeys "%(FMC)", False
DoCmd.Quit
End Function

how to introduce this delay of 10 seconds and then close the DB.

View 3 Replies View Related

Modules & VBA :: Calling Public Function To Backup / Compact Back End?

Dec 23, 2013

I have the following function that I found online. Unfortunately I can't remember where I got it since I've had it for a little while. Today, when I tried to actually put it to use it didn't work.

I'm calling it from a form as follows: CompactDB (tblHotword)

tblHotword is just a random table from the back end. My understanding of the function was that it would use that table to connect and get the file name of the back end.

Whenever I run it, Access pops up a window that says "Object required" and nothing else. It doesn't look like a standard error message popup. When I click 'OK', Access continues with the rest of the code as if nothing went wrong. The function doesn't run though.

Code:
Public Function CompactDB(TableName As String) As Boolean
On Error GoTo Err_CompactDB
Dim stFileName
DoCmd.Hourglass True
stFileName = db.TableDefs(TableName).Connect

[code]....

View 8 Replies View Related

General :: Compact Remotely Using Batch?

Mar 29, 2015

Within batch file, I use the following command: MSACCESS.EXE mymdbpath /compact

I get the exclusive in use error. How can I suppress such error or warning messages from within the batch file?.

View 1 Replies View Related

General :: Access 2013 - Compact Database To New Name

Jan 30, 2015

Access 2013 ... Is it possible to compact a database to a new name?

(In previous incarnations of Access I regularly 'compacted and repaired' databases to USB sticks rather than simply copy the file in the (mistaken??) belief that this was a more reliable approach)...

I can't see where to do this in Access 2013!

View 1 Replies View Related

General :: Database Auto Compact On Idle

Nov 9, 2012

In my access applications i have used the database split built in functionallity to split my frontend and backend tables.I have created a mail mechanism and when the database grows to that level i recieve a mail, ask users to get out of the database and compact the database. But this is tiding. I have a scheduled job that compacts databases early in the morning before users logged on. But during day work databases grow enormous again. Well is there a way by VBA code to create an auto compact function that on idle will log off all users in the database and compact it?

View 2 Replies View Related

General :: How To Prevent Resetting Of Auto Number Indexes On Compact And Repair

Dec 3, 2012

In month-end posting - I basically delete all the records from my transaction file. And in doing so - it seems to be resetting the auto number index - which is causing me major problems.

The resetting of the index after deleting all the records is normal.

I am working in VB 2010 - using a 2003 MS Access database.

View 4 Replies View Related

General :: Rightclick Menu In Explorer - Compact Or Decompile Access File

Sep 24, 2012

I am looking for a registry setting or .reg file to rightclick on an Access file and in the menu i want to compact or decompile the access file.

I know it is possible but i don't know what's the registry setting.

View 1 Replies View Related

General :: Unable To Close A Form With Subform

May 30, 2015

I am trying to close a form with a subform.

I enter data in the main form and then the subform.

The main form has a save btn with an on click event which includes at the end of code

If Me.Dirty then
Me.Dirty = false
DoCmd.Close
DoCmd.OpenForm "FormName"

However the Form will only close and open the required form if I remove the two "Dirty" Code lines.

I am obviously trying to ensure that the data is saved on both the main and subforms using the If Me.Dirty......code

View 7 Replies View Related

General :: Close Database When A File Is Not Found

Feb 12, 2015

I have this code that I want to close the database when a file is not found:

Option Explicit
Dim boolCountDown As Boolean
Dim intCountDownMinutes As Integer
Private Sub Form_Open(Cancel As Integer)
boolCountDown = False

[Code] ....

A form with this code is opened when the database is loaded. The form refreshes every 10 seconds. When the form refreshes, it searches (is supposed to search) for a file name and if not found, close the database. but if it's found it does nothing. I rename the file when I want the database to close. But the code runs no matter what and closes the database even if the file is in the correct location with the correct name. the file path above is a network drive but it doesn't work no matter when I put the file. I bolded the parts that are supposed to be searched.

View 6 Replies View Related

General :: Convert MDE Back To MDB?

Jul 22, 2013

How can i convert a .mde back to a .mdb? I need to change some material on our program and have lost the .mdbs!

View 3 Replies View Related

General :: Close Access DB Present In Network Quickly

Aug 23, 2012

I have Access as front end and SQL Server as back end. The Access application is placed on a common network drive for theusers to access it. The compact on close option is enabled when the access application is closed.

I have a local copy of the access app. When I close the app, it takes ony a few seconds. But when on a network drive, it is taking 2 mins.I just wanted to know if the time taken to close the application on the network drive can be brought down without disabling the compact on close option.

View 1 Replies View Related

General :: Disable Close Button Access 2013

Jul 18, 2013

how to disable the main close button so the user is forced to click the Quit Application button on my main switchboard?

View 8 Replies View Related

General :: Duplicate Back End On Different Server

Feb 22, 2013

We have offices in other states that need to be able to open our data base. Due to the line speed it is extremely slow linking to our backend. Is it possible to have duplicate backends that can be merged, lets say over night or at the push of a button.

View 5 Replies View Related

General :: Design Jumps To The Back?

Mar 1, 2013

My forms and reports jump to the back, behind anything that is open when ever I open them into design.

View 6 Replies View Related

General :: How To Set Up Access Database As Back-end Only

Aug 8, 2015

I plan on using Excel as the front-end and Access as the back-end only. (all queries and forms are in Excel). A single Access database will be queried from multiple Excel files that will be located on the share drive (Linux server). Access tables contain memo, text and number fields. Data will be sent to Access tables and records will be appended/deleted; all via Excel.

There will be multiple users interacting with a single Access database via multiple Excel files located on the shared drive. Users will be interacting from different workstations with Windows 7, all have Access 2010 and Excel 2010 installed.

This process works for me from my workstation but I am not sure what will happen when other 4 people will be sending/appending/deleting records to the same Database? How do I make this work? What settings do I need to check in Access to make this possible?

View 6 Replies View Related

General :: Can Put Back End Of Database On Web Space?

Jul 31, 2013

I have a database which is split so that several people can have a 'front end' to the database to access one common back end. This works fine on a network but I thought I could load the backend up to my webspace and then with the links manager point to it, but it doesn't work. I get an error report of 'not a valid file name.'

The website is [URL] .... and the backend database name is Probus_data_A.accdb and so I entered [URL] .... as the address in link manager.

View 1 Replies View Related

General :: Protecting Back End Of Database

Sep 12, 2013

So i want to protect the back end of a database but im limited to what I can do....I am unable to restrict members from accessing the file by username...I am unable to place it in a local area which is pass protected...I am also unable to encrypt the back end as the front end needs to be able to access it (and I dont know how to allow it to do that...)

View 2 Replies View Related

General :: Linking Back End Error

Nov 5, 2013

Have a database with a back end that I have been working on. The database resides on a USB at the moment. I was ready to deploy and now when I try to re-link the back end tables, I repeatedly have the following error: "Your network was interrupted. To continue, close the database, and then open it again."

At first I thought this was something to do with the network, as I was moving it to a shared network drive. However, I can recreate the same issue using someone else's computer and using my USB (although it's mapped to a different drive letter). I've tried a few things, including recreating the back end by importing only the table structure, but still no luck.

View 4 Replies View Related

General :: Pop Up Process Running MsgBox And Close Automatically On Execution

Aug 23, 2013

I have a form that loads when the database is open, and the form has buttons etc. that leads to queries and reports in the database. (Queries open in a form). Since most queries take a while to load, I was wondering if there is a way to Pop up a message box stating "Please Wait, Query is running..." (or something like that), and once the form opens the MsgBox should close automatically. (The user should not have to hit Ok button.)

Most users of this database would have restricted access such that they would not have navigation pane and toolbar visible - hence I want to make it a touch more interactive when a process is running...also if someone is new to access they might not notice that taskbar status and I don't want them thinking the program is stuck etc..

View 4 Replies View Related

General :: Disable Title Bar Minimize / Restore And Close Buttons

Oct 31, 2012

How to disable the Minimise, Restore and Close Buttons at the very top right hand corner of the Access application?

I have got buttons on my database to open / close everything so no need for them, even to hide the full Title bar probably be okay.

I am running Access 2007.

View 12 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved