Scheduled Shutdown Of Dbase

Jan 24, 2007

Hi,

I've searched the forum for a sample code on how to automatically shutdown database at a given time of the day, but i can't find any. There are lots of codes pertaining to inactivity / idle users but none on scheduled time.

My idea is to kick-off all users every 12:00nn, Monday to Saturday and then compact / backup database after.

I hope someone could assist me.

Thank you!


Sheila

View Replies


ADVERTISEMENT

Auto Shutdown

Nov 8, 2007

Hi

Does anyone know if it is possible to create a macro (or whether there is another function) so that a database will automatically close after a period of inactivity.

There is only one form that users will see (or use) but if this form remains inactive for say 20-minutes the program shuts itself down.

My initial thought was to use Form>On Timer facility but I would need to be reset the timer after every update. This seems particularly longwinded and I'm not 100% sure it would work.

Any suggestions would be gratefully received.

Thanks.

View 2 Replies View Related

Automatic Shutdown Of Access

Apr 26, 2006

Hi everyone,

Is there a way to automatically shut down Access after a given amount of time?

I have an Access application that runs across a network. Access is the front end of a SQL Server 2000 database.

Some of the users forget to close their application at night when they leave for the day. When I come in in the mornings, I like to run the Compact and Repair, but can't because someone is still logged in. So then I have to go to each and every computer to see if they are still logged in. By the time I vist each computer, the morning is almost started and people ARE logging in for the day.

So I'm hoping to find an application that will automatically either log each computer off across the network, or that will log the application off of each individual computer after a given amount of inactivity.

Thanks for your help...

View 2 Replies View Related

Graceful Database Shutdown

Dec 21, 2007

I recently got a corrupt backend with the standard "unexpectedly quit Microsoft Access" message. This type of corruption (backend) has never happened before so I'm a little worried. I think I've taken the standard preventitive steps, but I'm hoping I can do more.

I guess I have two questions but my main one is, what's the most graceful/ideal way to close an Access database as to reduce chances of corruption?

My other question is, does the size of the database have any bearing on it's corruptibility?

View 1 Replies View Related

Forced Shutdown At Time()?

Mar 28, 2005

I am still learning access and have been helped alot by this forrum so I thought someone may be able to help me here. I am trying to experiment with security from a few different angles, privileges to folder, to database, inactivity shutdown, ect. I know that my office shuts down at 1630 hrs every day and noone comes back in till 0730 the next morning. Is it possible to ether load a script/macro on start up that will query the time every so often, and if the time is between 1700 - 0700, automatically close the program? If so could the inactivity timer sample supplied by petersoft be modified to accomplish this? If not possible, could a conditional statement be loaded on start and at a set interval after that to do something like (iif (time())<1,docmd.quit,"").

Thanks all
Narack

View 2 Replies View Related

Question About Force Shutdown The Database

Jan 22, 2007

I download the database from this thread http://www.access-programmers.co.uk/forums/showthread.php?t=103278 and I copy the table, form, macro and module to my database but and error is appearing showing that missing shutdownform.

Pls can any one help me.

View 1 Replies View Related

Random Shutdown Of Access Application

Mar 31, 2007

Help !

The MS Access 2000 application I have developed for my remote client, when deployed, occasionally shutsdown with no error message and no clue as to why.

There is no common pattern that I can establish. Compact and Repair makes no difference. Have tried re-writing objects that I suspect may cause this. I have tried creating new front end and back ends and re-importing all the objects. Have tried programatically deleting and replacing all queries. Have tried converting to Access 2003 and back again.

Is there any third party trace tool that I could use, or expertise that I could engage?

My London based client is losing patience and I am staring down the barrel of 4 weeks worth of work going unpaid.

Thanks in anticipation...

--
Richard

View 14 Replies View Related

Program Windows Scheduled Task

Aug 23, 2007

Hi All,

Does anyone one if it is possible to program a schedule for "Windows Scheduled Task" via VBA?

Reason:- A multi user application is set to give a 5 Min warning at the same time every day. After the 5min the users are politely kicked off.

At that time the Windows Scheduled task opens up the BE (only on 1 PC the fastest). The BE start form has a time event that backs up the BE and compacts and repairs itself then closes the application.

Not pretty I know but it works really well.

This shutdown time can be set/changed on the FE however, when it is the windows Scheduled Task has to also be changed which I would like to do automatically via VBA

Any help would be appreciated.

View 1 Replies View Related

Shutdown DB On Other User's Machines From Mine?

Aug 20, 2004

Is there a way to shutdown an particular db when multiple users are logged on from my pc?
i.e. - When I need to get into design mode and can't because of other user's being logged on.

Or at least be able to send them a friendly message from within access to ask them to get out?

View 2 Replies View Related

Modules & VBA :: Scheduled Task On Windows Server

Apr 20, 2015

I have a vbs-script that opens my access database db.mdb and runs the module "Export":

dim accessApp
set accessApp = createObject("Access.Application")
accessApp.OpenCurrentDataBase("D:Datadb.mdb")
accessApp.Run "Export"

accessApp.Quit
set accessApp = nothing

This works fine as a scheduled task on a Windows 7 computer.

Is there a way to make this work on a Windows Server 2008 R2 ? When I double click the vbs-file, the file opens instead of runs. And when I create a scheduled task, nothings happens.

View 2 Replies View Related

Queries :: Find Records Not Scheduled / Complete

Jun 4, 2013

I have a database for training. I have a table of employees with one of the criteria being active which is enabled by a check box. I have a second table of all of the training data. When I add a new employee, or I want to schedule someone, I want to be able to have a combobox on a form which I can select the type of training and then with a push of a button find if there is an active employee which has not had this training through results of a query.

View 14 Replies View Related

Running A Query / Macro Through Scheduled Task?

Aug 25, 2012

I have a MS Access append query that updates a table from a linked Excel spreadsheet. Im trying to automate the running of the query during the night.

Ive tried a couple of ways to schedule the task with Windows Task Scheduler, although each time, it appears to start the job, but then just hang (task never completes, doesnt run the query or macro and when I log back into Windows, the msaccess.exe process is running).

Methods Ive used are:

- command line with /x macroname

- vbs script which runs the query / macro

Code:
'Read from a Microsoft ACCESS database
Option Explicit
dim oaccess
'execute another Access macro
set oaccess = createobject("access.application")
oaccess.opencurrentdatabase "H:Database.mdb"
oaccess.docmd.setwarnings false
oaccess.DoCmd.RunMacro "Macro1"
oaccess.docmd.setwarnings true
oaccess.closecurrentdatabase
oaccess.quit
set oaccess=nothing
WScript.Quit(0)

- .bat file which just has the command line in it.They all run fine when I am logged in, although it seems to hang when I am logged off the network. I have the correct permissions as Ive scheduled a Excel macro to run and its fine.

View 4 Replies View Related

Modules & VBA :: Timer Based Event - Auto Shutdown

Oct 9, 2014

I use a timer based event that shuts down the frontends after some idle time.

1. How to disable the timer as it causes some weird bahaviours while editing the code? is shuting down the hidden form enough?

2. Is there a way to add regular maintenance intervals, i.e. every wednesday at 20.00.? how?

View 2 Replies View Related

General :: Scheduled Task To Import Daily CSV Exports?

May 18, 2015

We have small data dumps from a webservice delivered to us daily in csv format. I'd like to create a system where we can have the data automatically imported into either Access.

My idea is this:

1. CSV is downloaded to <x> folder.

2. Scheduled Task runs script to look in folder <x>

3. If CSV is found in folder <x>, import it's data into a fixed Access db->table.

4. Move CSV to an archive folder to avoid re-processing.

Is this feasible? How complicated would it be, and how to get it on track?

View 1 Replies View Related

Modules & VBA :: Scheduled Task - Run Macro To Send Report Out?

Feb 3, 2014

I have a report that I run manually from my computer every day.

This report is created by a macro in microsoft access, then it runs a VBA macro to send it out..

Is there a way that I can add this as a scheduled task since I usually forget to send it out?

View 3 Replies View Related

Chat Through Dbase?

Mar 27, 2006

Hi!!
I am creating a dbase which can be accessed through a lan
Would like to know whether it is possible to have a chat window EMBEDDED into the dbase; whereby multiple users can chat and modify database accordingly....
Prob simple, but the access help doesnt offer much support

Your efforts will be greatly appreciated.

P.S. Can u just create a small sample for the same??

View 2 Replies View Related

Attendance Dbase

Feb 12, 2007

Dear fellows
hi
I need sample access dbase records and retreive attendance of students in course
thank you for help
moheb morcoss

View 3 Replies View Related

P'se Critque My Dbase

Feb 15, 2007

Hello there,

I'm trying to develop a database for an organisation for their partners....see attached. I would like you to take a look and tell me if what I've done is the right thing. Secondly, (I'm just learning Access) I would like to have a query that give a count of 3 how many CBOs, how many NGOs; by 8 (location). Third. Is it possible to have (sub) grouped into expertise?

The mission and vision field was a multiple answers field, is this the way?

Thank you in advance,

Samia

View 8 Replies View Related

Export To DBASE III

Sep 29, 2005

I need to export ms access table to dbase III format.
When I use export something is missing and the file format
is just not good.When I try to open dbf file with
program Dbase I get message "not a dbase database".
I find out that excel do the same, so if anybody know
how to export to dbase III using ms access or ms excel
please help.Ms access help is to install borland database,
I downloaded some from Internet but I don't know what to do with it.
PS: Even when I import dbase III file and try to export it back
there is a problem.
Please, please help.

View 2 Replies View Related

Modules & VBA :: Launch Access From Scheduled Tasks Without Interactive Login?

Sep 5, 2013

I have been searching the web for a solution to this problem. I have created a scheduled task on Windows 7 to automatically run a macro from a command line, however, it seems to only run when the user is logged onto the machine. Is there a way to run Access without the interactive logon? I would rather not leave the machine logged in with this account, but if that is the only solution, so be it.

View 7 Replies View Related

Modules & VBA :: Calendar Form - Allow Multiple Appointments Scheduled For Same Time

Mar 4, 2015

I am making a calendar form in Access and want it to look like Google Calendar as much as possible. I am wondering if there is a good way to go about setting up the form to allow for multiple appointments scheduled for the same time. Designing the form to be in Week View with half hour blocks has me at 210 text boxes. As far as I can tell, there isn't a way to dynamically add in controls unless you are in design view. However, how many appointments might be scheduled at the same time. I could add in as many text boxes as possible I guess, but that doesn't seem to be very efficient (and the base form is already at 210). Is there anyway to add in controls (such as text box or label) if a new appointment is added at the same time as existing ones?

View 5 Replies View Related

FoxPro/DBase III Import??

Oct 12, 2006

Okay,

First I was thinking to write a little app in Access to work with a DBF file, that I assumed was a DBIII database. It was exported via a 3rd party software, and the primary interface up until this point has been Visual FoxPro. My problem is two fold:
1st:
When I tried to import it as a dBase III file, Access just closed. I mean, disappeared, no longer running, closed. I didn't even get an error message or anything.
So I tried to import via ODBC, using a "Machine Data Source" Microsoft Visual FoxPro Database (or table, either works) and selected the directory of the dbf file and selected the table listed once it scaned the directory and all imported fine.

So: If the Visual FoxPro Machine Data source worked, though I am confused why the DBIII driver just booted me, I am now concerned as to how I would write a connection string via DAO to access that dbf file at run time.

Basically I want to go to a static location on a network and access a dbf file, and perform query manipulations upon it. My connection will be READ ONLY to the actual DBF file and i would subsequently use MS Access to create any other relevant tables/queries based on the table in the dbf file. Since the Visual FoxPro MDS diver worked, do I need to write a connection string to access it, and if so, how would I do that?

Thanks
Jaeden "Sifo Dyas" al'Raec Ruiner

View 1 Replies View Related

Prob With Many2many Dbase..

Dec 27, 2006

I'm trying to create a little dbase for personal keeping track of a number of companies I deal with, so that i store their details and also the products they distribute.
In more detail, I want to have 'fixed' product categories, which will be assigned to supplier, and each category will include the product models I have set, including their details (such as price, manufacturer, country of origin, etc).

My point is to be able to create several customised reports and listing:
1. All product models I have in a category including their details.
2. Report per supplier to view their details and the products they distribute
3. Certain product models in a list with their local distributor (companies I deal with).

I assume it involves a couple of many2many relationships, however I have created a file in MS Access but never managed to have it work properly.

Any1 have an idea, or template maybe?

Regards ;)

View 2 Replies View Related

Access-Dbase Or Remarry

Apr 13, 2007

I have been married for 36 years. I really don't want a diorce, but I think I might have to in order to get access to work for me. It appears to get the best way to get D base to work with access it to get divorced and remarried, ha. We have tried several ways to get import data into access from a Dbase IV file. We have tried by a Dbase import and a text delimined file import. We get a subcript out of range. There seems to be several issues here. One of them is if you have numbers in a dbase text field, and try to import them intp access, the documentation and access says we have to put quotes around the numbers. That didnt work.

Actually, rather than going into great detail of what we have tried, let me just tell you that we cant import the file. Can anyone help? We have the folling type of filds in dbase: date fileds, text field with numbers, and numeric fileds. Please help.

:mad:
Bob

P.S. I am happily married, so i would prefer not to go the marriage route with dbase.

View 7 Replies View Related

Exporting Table To DBase IV (*.dbf) With VBA

Feb 22, 2008

Hello guys,

I am working on a database that requires a user (with very little access knowledge) to export a table into .dbf (DBase IV Format) using a button and VBA.

I realize this can be done by right clicking on a table and click export. However I did not give the end user access to the tables (being a good DB Developer!) and also I don't believe I can teach this particular user how to do the steps to accomplish this.

The scenario: Third party software needs (SwissSys, which is a chess software) to grab information about players and ratings from a .dbf file (and will not work with access). I have developed a database for the association so that they can edit players information, and update the ratings directly off the website (www.chess.ca) and it automatically updates in the database.

The idea is, the Access Database updates the ratings from the website, and then the user exports that data into the dbf file (players table) that is directly linked to the third party software.

I am looking for a way to use VBA code to either 1. Create/Overwrite the existing dbf file when exporting the tblPlayers, or 2. Append/Update the current dbf file with the updated ratings, and creating new entries when necessary when exporting the tblPlayers.

Unfortunately I have had little success in finding code to export to a dbf file, anyone have any ideas?

View 3 Replies View Related

Programmaticaly Add User To Secured Dbase

Jul 20, 2007

Can anyone help please

How do you add a user to asecured database using vb

Thanks

View 1 Replies View Related







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