Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 9th, 2006, 12:15 PM
bernard.thouin@ubs.com
Guest
 
Posts: n/a
Default Access can't run when I'm logged off?

Hi,

I have an Access 2003 app (accessing an Access 2002-2003 DB) that runs
every day at a given time on an XP Pro PC. I've used XP's built-in
scheduler to set up the app to run every day at a fixed time (17:30).
The scheduler asks for user and password to run the app under. The app
has no forms at all, it just runs a macro that calls a function that
does all the work, which is purely DB-related (reading from one remote
DB, processing the data, writing the processed data into another remote
DB). So it has actually "no UI".

On Friday I had to leave the office early, so I just logged off (but I
let my PC running), thinking that the scheduler should be able to run
the app later on. However, this morning when logging in, I only found a
fatal error message ("Access has found a problem and needs to close, do
you want to report the problem to MS..."), and I can see that the app
has not run at all.

Does that mean that "unattended" operations are not at all possible
with Access ? What's the problem ?

Tanks for help.

Bernard

  #2  
Old October 9th, 2006, 08:45 PM
David W. Fenton
Guest
 
Posts: n/a
Default Re: Access can't run when I'm logged off?

bernard.thouin@ubs.com wrote in
news:1160393145.329854.268960@i42g2000cwa.googlegr oups.com:
Quote:
Does that mean that "unattended" operations are not at all
possible with Access ? What's the problem ?
Access is not a system service. It has a user interface, and has to
be logged on to be able to run.

Lock your workstation instead and that will allow it to run.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
  #3  
Old October 10th, 2006, 04:25 AM
Tom van Stiphout
Guest
 
Posts: n/a
Default Re: Access can't run when I'm logged off?

On Mon, 09 Oct 2006 15:04:38 -0500, "David W. Fenton"
<XXXusenet@dfenton.com.invalidwrote:

I've never tried this, but I would be curious what would happen if I
had a Service which created an Access.Application object and made it
do things...

-Tom.

Quote:
>bernard.thouin@ubs.com wrote in
>news:1160393145.329854.268960@i42g2000cwa.googleg roups.com:
>
Quote:
>Does that mean that "unattended" operations are not at all
>possible with Access ? What's the problem ?
>
>Access is not a system service. It has a user interface, and has to
>be logged on to be able to run.
>
>Lock your workstation instead and that will allow it to run.
  #4  
Old October 10th, 2006, 11:05 PM
David W. Fenton
Guest
 
Posts: n/a
Default Re: Access can't run when I'm logged off?

Tom van Stiphout <no.spam.tom7744@cox.netwrote in
news:f95mi2h3r01fsqkkev5qff840trpi0rna4@4ax.com:
Quote:
On Mon, 09 Oct 2006 15:04:38 -0500, "David W. Fenton"
><XXXusenet@dfenton.com.invalidwrote:
>
Quote:
>>bernard.thouin@ubs.com wrote in
>>news:1160393145.329854.268960@i42g2000cwa.google groups.com:
>>
Quote:
>>Does that mean that "unattended" operations are not at all
>>possible with Access ? What's the problem ?
>>
>>Access is not a system service. It has a user interface, and has
>>to be logged on to be able to run.
>>
>>Lock your workstation instead and that will allow it to run.
>
I've never tried this, but I would be curious what would happen if
I had a Service which created an Access.Application object and
made it do things...
Services are not supposed to have a UI.

You could try launching it with SrvAny, which is available in all
the Windows Server toolkits.

But I'd only use it in production with apps that were designed with
running as a service in mind.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles