I assume you're speaking of the code listed at
http://www.mvps.org/access/api/api0039.htm.
The code should be placed in a standard module that you create in the
Modules tab of the database window. The module should be given a unique name
when you save it (i.e. not the name of any of the procedures it contains or
the name of any procedure in any other module).
In your form, you would call the Public Function, fGetServerTime, listed in
the code. You would call it with syntax similar to this:
dteTime = fGetServerTime(\\ServerName)
Be aware, as it stated on the page, this will NOT work on a Win9x computer.
It will only work on an NT computer (NT4, Win2k, WinXP, Win2003 Server).