Get server time for MS Access Field

Posted on 2010-01-12
Medium Priority
Last Modified: 2013-11-29
I have a split database in Access 2003 with the main tables residing on a local server.  I am trying to create an employee punch/in and punch/out time clock.  I'd like to take the time from the server for a form now() function so users could not change their desktop time.  Anyone know of a simple way to do that in VBA... ?
Question by:limobill
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 85

Accepted Solution

Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 2000 total points
ID: 26296776
Are you hosting your tables in Access, or in a server-type database?

If they're in Access, then I'm not sure you can do this. All processing is done on the workstation, and there is no capabilities on the "server" portion to run code.

If you've moved them to a server database, then you could use one of the native server methods. For example, in SQL Server you could create a StoredProcedure that would return the Server time.

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question