Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 1st, 2008, 10:20 AM
Authorized User
 
Join Date: May 2007
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default Clock

Hi All,

I am trying to find a way to create an audit system of auto entering of dates, however user's have a nasty habit of playing with the system and bios clock and therefore invalidating the use of date and now in the vba.

Can anyone suggest a way to get the correct time and date to flag this within the system and thereby ensure that the correct date is being used as close to all times as poss.

Cheers

 
Old August 1st, 2008, 03:02 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

It's kind of hacky, but if you could use XMLHTTP within VBA in Access, you could hit some web page on some server that you control that would return the current date/time.

But so long as you are restricted to getting time/date from the local computer, I don't see how you could possibly know any different from what the system clock tells you.
 
Old August 22nd, 2008, 06:55 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

I'm curious. If you were to create a file and place it on a network drive instead of the user's C: drive, would the file creation date and time be that of the user's computer or the server in which the file resides? If the latter, perhaps instead of a time stamp, you could create/edit & save a small ASCII text file and then note the time of creation/last save. IF the time is that of the network server and not the local computer, that is something users cannot mess with.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing a Macro for a clock dlalexan VB Databases Basics 1 July 9th, 2007 04:08 PM
System Clock Program nsx2200 Visual Basic 2005 Basics 1 March 26th, 2007 04:11 AM
creating a ticking clock neddyoats Classic ASP Basics 13 February 5th, 2007 08:52 PM
Displaying a clock hdfireftr Visual Basic 2005 Basics 2 September 15th, 2006 01:12 PM
Countdown clock Ciarano Beginning VB 6 1 March 12th, 2004 07:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.