472,373 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,373 software developers and data experts.

Run Access on Server Nobody Logged on?

I have two clients now who want to have an Access 2000 & 2002 application
running on NT Server 2000 do some file updating at night when nobody is in
the office. I have used Windows scheduler to schedule the apps to start at
4:00 am, but at that time of night, nobody is logged on to the server.

Is it possible to get Access to run on a server when nobody is logged on?

Many thaks
Mike Thomas
Nov 12 '05 #1
8 3129
"Mike Thomas" <Mi******@Yahoo.com> wrote in message
news:XV**********************@newssvr28.news.prodi gy.com...
I have two clients now who want to have an Access 2000 & 2002 application
running on NT Server 2000 do some file updating at night when nobody is in
the office. I have used Windows scheduler to schedule the apps to start at 4:00 am, but at that time of night, nobody is logged on to the server.

Is it possible to get Access to run on a server when nobody is logged on?

Many thaks
Mike Thomas


There's no need for someone to be logged on for Scheduler to work.

Nov 12 '05 #2
Unless someone can tell us how, I'm going to say "No" because Access will try to open its
user interface when you run it. You'll need to leave someone logged on but the server
locked (Ctrl+Alt+Del, Lock Workstation or a passworded screen saver).

--
Wayne Morgan
Microsoft Access MVP
"Mike Thomas" <Mi******@Yahoo.com> wrote in message
news:XV**********************@newssvr28.news.prodi gy.com...
I have two clients now who want to have an Access 2000 & 2002 application
running on NT Server 2000 do some file updating at night when nobody is in
the office. I have used Windows scheduler to schedule the apps to start at
4:00 am, but at that time of night, nobody is logged on to the server.

Is it possible to get Access to run on a server when nobody is logged on?

Many thaks
Mike Thomas

Nov 12 '05 #3
On Thu, 20 Nov 2003 23:15:03 GMT in comp.databases.ms-access, "Mike
Thomas" <Mi******@Yahoo.com> wrote:
I have two clients now who want to have an Access 2000 & 2002 application
running on NT Server 2000 do some file updating at night when nobody is in
the office. I have used Windows scheduler to schedule the apps to start at
4:00 am, but at that time of night, nobody is logged on to the server.

Is it possible to get Access to run on a server when nobody is logged on?


On Win 2000 the scheduler does prompt you for a login name/password to
run the job, it will log itself on when the time comes. Be aware it
will not log in a session on the console so an error or msgbox will be
futile (no way to press OK). Error trap everything, if an error
occurs, handle it, log it to a table, exit with noprompt/nosave. Let
the next person to log on read the error log (or hopefully, log a
success message).

There is an option to kill the job if it runs for xxx hours/minutes,
better set that to something sensible JIC, it defaults to 72 hours.

--
A)bort, R)etry, I)nfluence with large hammer.
Nov 12 '05 #4

"Wayne Morgan" <co***************************@hotmail.com> wrote in message
news:m9******************@newssvr33.news.prodigy.c om...
Unless someone can tell us how, I'm going to say "No" because Access will try to open its user interface when you run it. You'll need to leave someone logged on but the server locked (Ctrl+Alt+Del, Lock Workstation or a passworded screen saver).

--
Wayne Morgan
Microsoft Access MVP
I've been using the Open event of the startup form. It checks the Len of
Command, if 0, run normally, if > 0 then run in a batch mode - it does the
needed work, then Application.Quit. As Trevor suggested in an earlier
reply, debugging is murder. I've got many, many error traps, it still hangs
up every couple of weeks, I have to reboot the system. If it hangs, there
is abosolutely no way to tell what caused it. The scheduler kicks it off
every hour on the hour, Monday through Friday. It's been "publishing" for a
couple of years now.
"Mike Thomas" <Mi******@Yahoo.com> wrote in message
news:XV**********************@newssvr28.news.prodi gy.com...
I have two clients now who want to have an Access 2000 & 2002 application running on NT Server 2000 do some file updating at night when nobody is in the office. I have used Windows scheduler to schedule the apps to start at 4:00 am, but at that time of night, nobody is logged on to the server.

Is it possible to get Access to run on a server when nobody is logged on?
Many thaks
Mike Thomas


Nov 12 '05 #5
Thanks for all the replies.

The problem here is not with the scheduler - it does its thing just fine -
in fact it runs another app, V FoxPro, just before, and another Cute FTP,
just after it is supposed to run Access. They both run correctly.

In the scheduler, Access is opened with the following command:

"c:\Program Files\Microsoft Office\Office\msaccess.exe"
"d:\Apps\ChangeManagement.mdb" /x StartLoad

where StartLoad is a macro which calls a procedure which in turn calls the
other procs, then issues the Application.Quit command.

When I look at the scheduler log the next day, I see the entry "Access could
not start".

When somebody is logged on, no problem, the Access app opens, a blank
looking user interface opens, it does its thing and then shuts itself down.

So I am back to the original question of whether Access can be started and
run on a server, Win 2000, when no users are logged on. It looks like the
answer is no.

Mike Thomas


"c:\Program Files\Microsoft Office\Office\msaccess.exe"
"d:\cumminsApps\ChangeManagement.mdb" /x StartLoad
"Trevor Best" <bouncer@localhost> wrote in message
news:34********************************@4ax.com...
On Thu, 20 Nov 2003 23:15:03 GMT in comp.databases.ms-access, "Mike
Thomas" <Mi******@Yahoo.com> wrote:
I have two clients now who want to have an Access 2000 & 2002 application
running on NT Server 2000 do some file updating at night when nobody is inthe office. I have used Windows scheduler to schedule the apps to start at4:00 am, but at that time of night, nobody is logged on to the server.

Is it possible to get Access to run on a server when nobody is logged on?


On Win 2000 the scheduler does prompt you for a login name/password to
run the job, it will log itself on when the time comes. Be aware it
will not log in a session on the console so an error or msgbox will be
futile (no way to press OK). Error trap everything, if an error
occurs, handle it, log it to a table, exit with noprompt/nosave. Let
the next person to log on read the error log (or hopefully, log a
success message).

There is an option to kill the job if it runs for xxx hours/minutes,
better set that to something sensible JIC, it defaults to 72 hours.

--
A)bort, R)etry, I)nfluence with large hammer.

Nov 12 '05 #6
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I had the same problem: Windows 2000 network - opened an Access 97
application using Scheduler & a .bat file. I had the .bat file write
to a log file to show when the process started & ended. If I was
logged on to the server or a workstation & ran the .bat file the
application worked OK. When the scheduler ran the .bat file it logged
the start, started the Access application & immediately logged that
the application stopped! I had other log tables inside the
application to track what was updated - nothing happended during the
automatic run. This seems to me that Access won't run when no one is
logged on, i.e., the interface needs to display to the screen before
the automatic code runs.... ???

I never could figure out what was going wrong. Had to teach the users
how to do the automatic thing manually. Luckily, I'd created a manual
interface along w/ the automatic code.

I'd be real interested to know if anyone can solve this problem.

Rgds,

MGFoster:::mgf
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBP75Mu4echKqOuFEgEQJ1/gCgwaak6N1qrarjPewSbEmHDqt94FgAnjB7
zw8WaM9sDSg5kUpMvfKnXP4o
=yOMl
-----END PGP SIGNATURE-----

Mike Thomas wrote:
Thanks for all the replies.

The problem here is not with the scheduler - it does its thing just fine -
in fact it runs another app, V FoxPro, just before, and another Cute FTP,
just after it is supposed to run Access. They both run correctly.

In the scheduler, Access is opened with the following command:

"c:\Program Files\Microsoft Office\Office\msaccess.exe"
"d:\Apps\ChangeManagement.mdb" /x StartLoad

where StartLoad is a macro which calls a procedure which in turn calls the
other procs, then issues the Application.Quit command.

When I look at the scheduler log the next day, I see the entry "Access could
not start".

When somebody is logged on, no problem, the Access app opens, a blank
looking user interface opens, it does its thing and then shuts itself down.

So I am back to the original question of whether Access can be started and
run on a server, Win 2000, when no users are logged on. It looks like the
answer is no.

Mike Thomas


"c:\Program Files\Microsoft Office\Office\msaccess.exe"
"d:\cumminsApps\ChangeManagement.mdb" /x StartLoad
"Trevor Best" <bouncer@localhost> wrote in message
news:34********************************@4ax.com...
On Thu, 20 Nov 2003 23:15:03 GMT in comp.databases.ms-access, "Mike
Thomas" <Mi******@Yahoo.com> wrote:

I have two clients now who want to have an Access 2000 & 2002 application
running on NT Server 2000 do some file updating at night when nobody is
in
the office. I have used Windows scheduler to schedule the apps to start
at
4:00 am, but at that time of night, nobody is logged on to the server.

Is it possible to get Access to run on a server when nobody is logged on?


On Win 2000 the scheduler does prompt you for a login name/password to
run the job, it will log itself on when the time comes. Be aware it
will not log in a session on the console so an error or msgbox will be
futile (no way to press OK). Error trap everything, if an error
occurs, handle it, log it to a table, exit with noprompt/nosave. Let
the next person to log on read the error log (or hopefully, log a
success message).

There is an option to kill the job if it runs for xxx hours/minutes,
better set that to something sensible JIC, it defaults to 72 hours.

--
A)bort, R)etry, I)nfluence with large hammer.


Nov 12 '05 #7
TC
Does it need /nostartup to suppress the opening banner?

TC
"MGFoster" <me@privacy.com> wrote in message
news:T0*****************@newsread1.news.pas.earthl ink.net...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I had the same problem: Windows 2000 network - opened an Access 97
application using Scheduler & a .bat file. I had the .bat file write
to a log file to show when the process started & ended. If I was
logged on to the server or a workstation & ran the .bat file the
application worked OK. When the scheduler ran the .bat file it logged
the start, started the Access application & immediately logged that
the application stopped! I had other log tables inside the
application to track what was updated - nothing happended during the
automatic run. This seems to me that Access won't run when no one is
logged on, i.e., the interface needs to display to the screen before
the automatic code runs.... ???

I never could figure out what was going wrong. Had to teach the users
how to do the automatic thing manually. Luckily, I'd created a manual
interface along w/ the automatic code.

I'd be real interested to know if anyone can solve this problem.

Rgds,

MGFoster:::mgf
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBP75Mu4echKqOuFEgEQJ1/gCgwaak6N1qrarjPewSbEmHDqt94FgAnjB7
zw8WaM9sDSg5kUpMvfKnXP4o
=yOMl
-----END PGP SIGNATURE-----

Mike Thomas wrote:
Thanks for all the replies.

The problem here is not with the scheduler - it does its thing just fine - in fact it runs another app, V FoxPro, just before, and another Cute FTP, just after it is supposed to run Access. They both run correctly.

In the scheduler, Access is opened with the following command:

"c:\Program Files\Microsoft Office\Office\msaccess.exe"
"d:\Apps\ChangeManagement.mdb" /x StartLoad

where StartLoad is a macro which calls a procedure which in turn calls the other procs, then issues the Application.Quit command.

When I look at the scheduler log the next day, I see the entry "Access could not start".

When somebody is logged on, no problem, the Access app opens, a blank
looking user interface opens, it does its thing and then shuts itself down.
So I am back to the original question of whether Access can be started and run on a server, Win 2000, when no users are logged on. It looks like the answer is no.

Mike Thomas


"c:\Program Files\Microsoft Office\Office\msaccess.exe"
"d:\cumminsApps\ChangeManagement.mdb" /x StartLoad
"Trevor Best" <bouncer@localhost> wrote in message
news:34********************************@4ax.com...
On Thu, 20 Nov 2003 23:15:03 GMT in comp.databases.ms-access, "Mike
Thomas" <Mi******@Yahoo.com> wrote:
I have two clients now who want to have an Access 2000 & 2002 applicationrunning on NT Server 2000 do some file updating at night when nobody is


in
the office. I have used Windows scheduler to schedule the apps to start

at
4:00 am, but at that time of night, nobody is logged on to the server.

Is it possible to get Access to run on a server when nobody is logged

on?
On Win 2000 the scheduler does prompt you for a login name/password to
run the job, it will log itself on when the time comes. Be aware it
will not log in a session on the console so an error or msgbox will be
futile (no way to press OK). Error trap everything, if an error
occurs, handle it, log it to a table, exit with noprompt/nosave. Let
the next person to log on read the error log (or hopefully, log a
success message).

There is an option to kill the job if it runs for xxx hours/minutes,
better set that to something sensible JIC, it defaults to 72 hours.

--
A)bort, R)etry, I)nfluence with large hammer.



Nov 12 '05 #8
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Didn't have that in the startup command. Can't try it now 'cuz no
longer working for that client.

Anyone else can try?

MGFoster:::mgf
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBP77/vIechKqOuFEgEQLHLQCdHwRCaIgae26u1MPDxQ+pVWddf+wAn0 Ts
CTjk45DYxe6pxxz+FTfAUZuI
=W4GU
-----END PGP SIGNATURE-----

TC wrote:
Does it need /nostartup to suppress the opening banner?

TC
"MGFoster" <me@privacy.com> wrote in message
news:T0*****************@newsread1.news.pas.earthl ink.net...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I had the same problem: Windows 2000 network - opened an Access 97
application using Scheduler & a .bat file. I had the .bat file write
to a log file to show when the process started & ended. If I was
logged on to the server or a workstation & ran the .bat file the
application worked OK. When the scheduler ran the .bat file it logged
the start, started the Access application & immediately logged that
the application stopped! I had other log tables inside the
application to track what was updated - nothing happended during the
automatic run. This seems to me that Access won't run when no one is
logged on, i.e., the interface needs to display to the screen before
the automatic code runs.... ???

I never could figure out what was going wrong. Had to teach the users
how to do the automatic thing manually. Luckily, I'd created a manual
interface along w/ the automatic code.

I'd be real interested to know if anyone can solve this problem.

Rgds,

MGFoster:::mgf
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBP75Mu4echKqOuFEgEQJ1/gCgwaak6N1qrarjPewSbEmHDqt94FgAnjB7
zw8WaM9sDSg5kUpMvfKnXP4o
=yOMl
-----END PGP SIGNATURE-----

Mike Thomas wrote:

Thanks for all the replies.

The problem here is not with the scheduler - it does its thing just
fine -
in fact it runs another app, V FoxPro, just before, and another Cute
FTP,
just after it is supposed to run Access. They both run correctly.

In the scheduler, Access is opened with the following command:

"c:\Program Files\Microsoft Office\Office\msaccess.exe"
"d:\Apps\ChangeManagement.mdb" /x StartLoad

where StartLoad is a macro which calls a procedure which in turn calls
the
other procs, then issues the Application.Quit command.

When I look at the scheduler log the next day, I see the entry "Access
could
not start".

When somebody is logged on, no problem, the Access app opens, a blank
looking user interface opens, it does its thing and then shuts itself
down.
So I am back to the original question of whether Access can be started
and
run on a server, Win 2000, when no users are logged on. It looks like
the
answer is no.

Mike Thomas


"c:\Program Files\Microsoft Office\Office\msaccess.exe"
"d:\cumminsApps\ChangeManagement.mdb" /x StartLoad
"Trevor Best" <bouncer@localhost> wrote in message
news:34********************************@4ax.com ...
On Thu, 20 Nov 2003 23:15:03 GMT in comp.databases.ms-access, "Mike
Thomas" <Mi******@Yahoo.com> wrote:

>I have two clients now who want to have an Access 2000 & 2002
application
running on NT Server 2000 do some file updating at night when nobody is

in
>the office. I have used Windows scheduler to schedule the apps to
start
at
>4:00 am, but at that time of night, nobody is logged on to the server.
>
>Is it possible to get Access to run on a server when nobody is logged
on?
On Win 2000 the scheduler does prompt you for a login name/password to
run the job, it will log itself on when the time comes. Be aware it
will not log in a session on the console so an error or msgbox will be
futile (no way to press OK). Error trap everything, if an error
occurs, handle it, log it to a table, exit with noprompt/nosave. Let
the next person to log on read the error log (or hopefully, log a
success message).

There is an option to kill the job if it runs for xxx hours/minutes,
better set that to something sensible JIC, it defaults to 72 hours.

--
A)bort, R)etry, I)nfluence with large hammer.


Nov 12 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Frnak McKenney | last post by:
Back when computer dinosaurs roamed the earth and the precursors to today's Internet were tiny flocks of TDMs living symbiotically with the silicon giants, tracking access to data processing...
1
by: Mike Thomas | last post by:
I want to start this thread again - on my first attempt I was a little ambiguous and was not able to get the answer I need. I am trying to start Access 2000 on Windows NT 2000 Server by using the...
18
by: Andre Laplume via AccessMonster.com | last post by:
I have inherited a bunch of dbs which are are shared among a small group in my dept. We typically use the dbs to write queries to extract data, usually dumping it into Excel. Most dbs originated...
11
by: James Goodman | last post by:
Ok, I had an ASP.NET application which after much trouble worked on a server, SERVER1. I need to move this application to another server, DC2. Both are domain controllers, both are running the...
3
by: Stuart Hemming (via DFN-CIS NetNews Service) | last post by:
I have a WS that I call that with one method 'logs in' to a COM object and then, with a 2nd method makes a call to the COM object and returns some data. Used from a web app this runs fine. This...
17
by: DaveG | last post by:
Hi all I am planning on writing a stock and accounts program for the family business, I understand this is likely to take close to 2 years to accomplish. The stock is likely to run into over a...
2
by: RSH | last post by:
I have a situation where I have a page called "HiddenFrame.aspx" that contains a public property exposing the value of a textbox called "TextBox1" that is in a hiddenframe. Loaded in the main...
7
by: mike | last post by:
We have numerous Access 97 apps that we run on our Terminal Server, but two apps in particular is giving us a problem. The problem we are running into is when you select a drop down menu, it errors...
3
by: Paul Brady | last post by:
I have two users, Andrew and Nancy, who each have their own computer and can connect to a common database called "employees.mdb" which resides on a network server. On that same network server,...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.