Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
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 October 17th, 2005, 06:33 AM
Registered User
 
Join Date: Oct 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to dubey.kuldeep Send a message via Yahoo to dubey.kuldeep
Default Retrival of Server Side DateTime with ACCESS

How can i retrieve Server side DateTime from MS Access.
Can anyone help me with the complete query.

it would be great

Kuldeep
 
Old November 1st, 2005, 04:00 AM
Friend of Wrox
 
Join Date: Jul 2005
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why do you need the server side date time?
At login, you should be running a script so that the workstation clock gets set to match the server. Then you can just check the clock on the workstation.

When a file gets saved to the server, the date stamp comes from the workstations clock, not thr server. That is why it is a good idea to have all workstations that log onto a file server update their clock to match the server's clock.


Boyd
"Hi Tech Coach"
Access Based Accounting/Business Solutions developer.
http://www.officeprogramming.com
 
Old November 1st, 2005, 12:37 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

If the back end of the database is stored on a file server, just use Date() and Time() or Now() to get this info. It comes from the file host machine. So if the Back End is on the server, it "should" take the server time.

Try setting the front end machine's time to something different from the server time, and then create a record using Date/Time defaults and see which time you grab.

I agree about having the workstations update their clocks from the server. If you are doing record prioritizing based on a timestamp, then they should all be getting their time from the server.

HTH

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Converting Client-side to Server-side Code kwilliams ASP.NET 2.0 Professional 1 November 21st, 2007 05:25 PM
asp 3.0 classic&access *formula retrival)? saad_rashad Classic ASP Databases 3 February 18th, 2007 03:47 PM
Firing server side events at client side codes mehdi62b ASP.NET 1.0 and 1.1 Basics 6 May 18th, 2005 09:11 AM
server side data access rizp ASP.NET 1.0 and 1.1 Basics 3 September 6th, 2004 12:41 PM





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