
Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
On Sep 17, 11:49 pm, "Douglas J. Steele"
<NOSPAM_djsteele@NOSPAM_canada.com> wrote:
> >> Hi all!
>
[quoted text clipped - 16 lines]
> Doug Steele, Microsoft Access MVPhttp://I.Am/DougSteele
> (no private e-mails, please)
Douglas hi,
The process should be run on schedule and automatically.
It's a bit problem to jump to the office at night just top hold down a
shift key so the decompilation won't start the Autoexec macro...
Does anyone has some idea?
Thanks,
Ilya
Ken Snell (MVP) - 18 Sep 2007 14:37 GMT
One off-the-wall thought -
Have your nightly routine create a text file with a specific filename on
your computer/server before it calls the decompilation process, then have it
delete the file after the decopilation process. Change the AutoExec
procedure to use the Dir function to see if the text file exists, and if
yes, stop the macro.

Signature
Ken Snell
<MS ACCESS MVP>
> On Sep 17, 11:49 pm, "Douglas J. Steele"
> <NOSPAM_djsteele@NOSPAM_canada.com> wrote:
[quoted text clipped - 30 lines]
> Thanks,
> Ilya
Ilya - 23 Sep 2007 15:07 GMT
On Sep 18, 3:37 pm, "Ken Snell \(MVP\)"
<kthsneisll...@ncoomcastt.renaetl> wrote:
> One off-the-wall thought -
>
[quoted text clipped - 46 lines]
> > Thanks,
> > Ilya
Ken, hi!
Your idea was brilliant and worked perfect.
I used Scripting.FileSystemObject to check for file existense and
added an Application.Quit for the case the file exists. Works as a
watch!
Good luck and thanks,
Ilya
Ken Snell (MVP) - 24 Sep 2007 18:15 GMT
> On Sep 18, 3:37 pm, "Ken Snell \(MVP\)"
> <kthsneisll...@ncoomcastt.renaetl> wrote:
[quoted text clipped - 16 lines]
> Good luck and thanks,
> Ilya
You're welcome.

Signature
Ken Snell
<MS ACCESS MVP>
David W. Fenton - 19 Sep 2007 17:22 GMT
> The process should be run on schedule and automatically.
> It's a bit problem to jump to the office at night just top hold
> down a shift key so the decompilation won't start the Autoexec
> macro...
>
> Does anyone has some idea?
Don't use an Autoexec macro. Instead, put whatever is in your
Autoexec macro into code, and call that code in a hidden startup
form.
In the startup form, check the COMMAND statement. If it returns
anything, that means something was passed on the commandline with
the /cmd switch. That allows you to run the database with a
commandline switch that will cause it to bypass the end-user startup
routines.

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