473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

"Lock Computer" affect on MS Access applications

4
I apologize in advance for the length of this posting and will attempt to simplify as much as possible.

I have an automation application in MS Access which generates reports in Excel and emails them to appropriate distribution lists. The application's automation is basically a timer which checks the current system time and the next report generation time. For example, Daily Report A has a next generation time of 8:00AM on 1/9/2008. When the timer (current time) reaches the specified time it creates the report and emails it.

This works perfectly as long as the computer remains unlocked. Meaning no screen savers are turned on and the computer is not "locked". If I remote VPN in to the machine the machine is automatically locked locally. Upon closing the remote VPN connection the local computer remains "locked". The applications timer seems to continue working correctly but when it hits the time to perform functions it stops. If I then locally "unlock" the computer it continues processing as normal. Is there any way to get around this issue? Any way to make the application continue regardless if the computer is locked or unlocked? I have always hated the idea of leaving the machine logged in and unlocked (inherited the application with the job) but have not found a way around this issue. Any assistance is appreciated.

Thanks.

Computer specs:
OS - Windows XP Professional SP2
Processor - 3GHz Celeron
RAM - 2GB
MS Access - 2003
Jan 8 '08 #1
7 8486
puppydogbuddy
1,923 Expert 1GB
I apologize in advance for the length of this posting and will attempt to simplify as much as possible.

I have an automation application in MS Access which generates reports in Excel and emails them to appropriate distribution lists. The application's automation is basically a timer which checks the current system time and the next report generation time. For example, Daily Report A has a next generation time of 8:00AM on 1/9/2008. When the timer (current time) reaches the specified time it creates the report and emails it.

This works perfectly as long as the computer remains unlocked. Meaning no screen savers are turned on and the computer is not "locked". If I remote VPN in to the machine the machine is automatically locked locally. Upon closing the remote VPN connection the local computer remains "locked". The applications timer seems to continue working correctly but when it hits the time to perform functions it stops. If I then locally "unlock" the computer it continues processing as normal. Is there any way to get around this issue? Any way to make the application continue regardless if the computer is locked or unlocked? I have always hated the idea of leaving the machine logged in and unlocked (inherited the application with the job) but have not found a way around this issue. Any assistance is appreciated.

Thanks.

Computer specs:
OS - Windows XP Professional SP2
Processor - 3GHz Celeron
RAM - 2GB
MS Access - 2003
Have you tried using the winXP scheduler to execute a macro at the set time instead of the Access Timer; the idea being that it is part of the operating system, external to the application, and therefore logicallly seems to be in a stronger position to control the locking/unlocking of the machine (which is an OS function)..
Jan 8 '08 #2
tman69
4
Have you tried using the winXP scheduler to execute a macro at the set time instead of the Access Timer; the idea being that it is part of the operating system, external to the application, and therefore logicallly seems to be in a stronger position to control the locking/unlocking of the machine (which is an OS function)..

No, I have not tried that but it would not be a feasible option. The Access application that runs is a dashboard containg many, many reports which are generated based on the timer in relation to their scheduled run time record in a table. These reports are scheduled for different times and intervals.
Jan 11 '08 #3
puppydogbuddy
1,923 Expert 1GB
No, I have not tried that but it would not be a feasible option. The Access application that runs is a dashboard containg many, many reports which are generated based on the timer in relation to their scheduled run time record in a table. These reports are scheduled for different times and intervals.
Then the only I can tell is to check these links;compare them with your code, and see if maybe there is some code or commands that will help.


http://support.microsoft.com/kb/282866

http://support.microsoft.com/kb/314999
Jan 12 '08 #4
tman69
4
Then the only I can tell is to check these links;compare them with your code, and see if maybe there is some code or commands that will help.


http://support.microsoft.com/kb/282866

http://support.microsoft.com/kb/314999

I m not sure you understand my question/problem as neither of the links you posted would have any bearing on it. The links you posted were how to auto-logon and how to force quit applications. I am not trying to do either of those things. I have no problem being logged in to the machine but would like to be able to lock it and have the code continue to execute as normal.
Jan 14 '08 #5
puppydogbuddy
1,923 Expert 1GB
I m not sure you understand my question/problem as neither of the links you posted would have any bearing on it. The links you posted were how to auto-logon and how to force quit applications. I am not trying to do either of those things. I have no problem being logged in to the machine but would like to be able to lock it and have the code continue to execute as normal.
I did not misunderstand you. In my opinion. if you are not willing to consider the Windows Task Manager, your solution lies in finding API code that will enable you to unlock the workstation when called by your timer code. This would enable your routine to run, and then the workstation can be locked or shut down again via code. I thought the links I gave you had some API calls that you might be able to use.

I've done additional research for API that you might be able to use. See these links.

http://blogs.msdn.com/brad_mccabe/ar...02/383544.aspx
# re: Locking the Computer from Code @ Friday, March 18, 2005 11:32 AM
Hey there,

I need to implement some sort of feature that will allow me to shut down an MS Access / VB application when the workstation on which the app is running is *locked*. I haven't had a lot of success getting the On Timer event to work while the workstation is locked, and I wonder if you had any ideas on how to do this progammatically (i.e. without getting the net techs to manually end the tasks on the workstations).

I've been researching this for about a year so any feedback would be highly appreciated. Thanks!


http://msmvps.com/blogs/alunj/archiv...ck-part-2.aspx

Even though there's no API call to do it, it is possible to unlock the workstation programmatically by emulating entering the password. I made a similar application that does this by connecting to an UltraVNC server service on the same host and sending mouse and keystroke events to enter the password. Alas, I have no hardware for proximity detection, so my application uses the removal and insertion of a USB drive holding a key file.


http://www.download32.com/shutdown-r...x--i10678.html
ActiveX costs $50
Jan 14 '08 #6
tman69
4
I did not misunderstand you. In my opinion. if you are not willing to consider the Windows Task Manager, your solution lies in finding API code that will enable you to unlock the workstation when called by your timer code. This would enable your routine to run, and then the workstation can be locked or shut down again via code. I thought the links I gave you had some API calls that you might be able to use.

I've done additional research for API that you might be able to use. See these links.

http://blogs.msdn.com/brad_mccabe/ar...02/383544.aspx
# re: Locking the Computer from Code @ Friday, March 18, 2005 11:32 AM
Hey there,

I need to implement some sort of feature that will allow me to shut down an MS Access / VB application when the workstation on which the app is running is *locked*. I haven't had a lot of success getting the On Timer event to work while the workstation is locked, and I wonder if you had any ideas on how to do this progammatically (i.e. without getting the net techs to manually end the tasks on the workstations).

I've been researching this for about a year so any feedback would be highly appreciated. Thanks!


http://msmvps.com/blogs/alunj/archiv...ck-part-2.aspx

Even though there's no API call to do it, it is possible to unlock the workstation programmatically by emulating entering the password. I made a similar application that does this by connecting to an UltraVNC server service on the same host and sending mouse and keystroke events to enter the password. Alas, I have no hardware for proximity detection, so my application uses the removal and insertion of a USB drive holding a key file.


http://www.download32.com/shutdown-r...x--i10678.html
ActiveX costs $50

I understand now what your line of thinking on the issue was and it is an interesting concept. I am not sure if it will work for what I need though. If I could write code that would unlock the machine at the desired time then I would not have the problem I have already. The timer continues to run and then the app stops if the pc is locked at the point where code needs to execute. So, I don't see how I could write code to unlock the pc if the other code doesn't run.
Jan 15 '08 #7
puppydogbuddy
1,923 Expert 1GB
I understand now what your line of thinking on the issue was and it is an interesting concept. I am not sure if it will work for what I need though. If I could write code that would unlock the machine at the desired time then I would not have the problem I have already. The timer continues to run and then the app stops if the pc is locked at the point where code needs to execute. So, I don't see how I could write code to unlock the pc if the other code doesn't run.
The code to unlock your pc would be executed by the windows task manger since it is strictly an OS function. Once your pc is unlocked, your Access
code could then run.
Jan 15 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: listerofsmeg | last post by:
Hi all, Fairly new to the world of .NET, but since installing it, IE has been playing up. When I installed, I'm sure I remember some dialog saying something like "Do you want .Net to improve...
0
by: Charlie O | last post by:
I have created an MSI for delivering a .NET Web application to our field reps. It is a "smart client" application that will reside on their laptops. We want them to all have the application...
4
by: yaipa | last post by:
All, I've been asked by my boss to put an Icon in WinXP's "My Computer" for a utility we use around the shop. My tool of choice is of course Python and therefore what I am using to attempt my...
1
by: mnlarsen | last post by:
How do I set the default location to "My Computer" when using the GetOpenFileName call? I have tried the following but CSIDL_DRIVES doesn't appear to work. Any ideas? WCHAR szFile =...
13
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate...
8
by: Steve Marshall | last post by:
Hi All, Is it possible to set the InitialDirectory property of an OpenFileDialog so it will open at the "My Computer" level? I want it to open showing all the available drives. If so, what do...
0
by: Renster | last post by:
Folks, Im writing a class library which I need to access a connected device's (phone) memory via UNC or something alone those lines, but cant work out out to do it, eg "\\my computer\nokia...
94
by: Samuel R. Neff | last post by:
When is it appropriate to use "volatile" keyword? The docs simply state: " The volatile modifier is usually used for a field that is accessed by multiple threads without using the lock...
2
by: questionit | last post by:
Hi When CTRL+ALT+DELETE is pressed together, the Task Manager comes up instead of the "windows Security" Dialogue box that has buttons "Lock Computer", "Log Off" ,etc How to set windows to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.