Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 1st, 2008, 10:20 AM
Authorized User
Join Date: May 2007
Location: , , .
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.


Reply With Quote
  #2 (permalink)  
Old August 1st, 2008, 03:02 PM
Friend of Wrox
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts

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.
Reply With Quote
  #3 (permalink)  
Old August 22nd, 2008, 06:55 AM
Friend of Wrox
Points: 4,007, Level: 26
Points: 4,007, Level: 26 Points: 4,007, Level: 26 Points: 4,007, Level: 26
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Lansing, Michigan, USA.
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

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
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 03:06 AM.

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