Launch running Access procedure before Windows login (1 Viewer)

amorosik

Member
Local time
Today, 08:25
Joined
Apr 18, 2020
Messages
390
I have a procedure created with some Access forms which creates a sort of print spooler and must remain active h24
It runs on Windows 10 pro, and currently the PC has two Windows users with a password request for desktop access
When the pc is restarted I would like my procedure to start running even if the user has not performed the initial login
It's possible to do it? How to do?
 

Ranman256

Well-known member
Local time
Today, 02:25
Joined
Apr 9, 2015
Messages
4,337
put your events in the autoexec when db starts:
make macro AUTOEXEC
runCode "MyPreProcedure"
openForm "fLoginForm"

but if mean run an app BEFORE they login to windows, then no. you cant.
the code above lets you run the procedure then Login to your access app system.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 01:25
Joined
Feb 28, 2001
Messages
27,186
Using task SCHEDULER


NOTE that if the task starts up with no user active, I am not sure about how it will connect to the screen and keyboard. This may be the source of Ranman256's comment that you can't do it. I think you CAN do it but that you won't like the way it runs because you can't connect to it.

However, using the Task Scheduler, you DO have the option to identify a userID under which to run your task. NOTE that in this case, you would launch your app, not Access itself. (Or more precisely, if you use the general method of the video, you launch Access targeting the app file.)
 

Users who are viewing this thread

Top Bottom