Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 22nd, 2007, 03:55 PM
Vincent
Guest
 
Posts: n/a
Default Windows Vista - Set Time

Due to UAC under Vista, I am encountering an error (Access Denied)
when trying to set the system time from my Access application. How do
I prompt for the necessary privilege elevation to allow me to modify
the system time? Thank you for your assistance.

Vincent

  #2  
Old October 27th, 2007, 02:45 AM
Tony Toews [MVP]
Guest
 
Posts: n/a
Default Re: Windows Vista - Set Time

"Tony Toews [MVP]" <ttoews@telusplanet.netwrote:
Quote:
>Then maybe you're best off seeing when the last time Windows, be it XP or Vista,
>updated the system time. For example I will occasionally see such messages in the
>event log telling me the time was or was not updated succesfully. I suspect there
>may be some API calls which would suffice.
>
>Then if the time is too long then fire up a message and/or notify the app
>administrator.
However I don't see such an API call at vbnet.mvps.org.
Quote:
>Also you can get the time of the server where the back end resides. Either use that
>or compare it to the time on the PC.
The following code synchronizes the date and time but by removing one line it will
just read the server date and time.
Synchronizing Date and Time to a Remote Server
http://vbnet.mvps.org/index.html?cod...otetodsync.htm

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 

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