Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / February 2007

Tip: Looking for answers? Try searching our database.

getting time from system clock and importing into field in access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
clark32456 - 27 Feb 2007 15:35 GMT
Is there a way to get the time from the system clock and import it into a
field in a table? I'm familiar with Access but new to SQL and do not know any
Visual Basic. Thanks.
Signature

Kevin Clark

aaron.kempf@gmail.com - 27 Feb 2007 16:39 GMT
=Now()
=Date()
=Time()

now = date/time
date = date
time = time

On Feb 27, 7:35 am, clark32456 <clark32...@discussions.microsoft.com>
wrote:
> Is there a way to get the time from the system clock and import it into a
> field in a table? I'm familiar with Access but new to SQL and do not know any
> Visual Basic. Thanks.
> --
> Kevin Clark
Albert D. Kallal - 27 Feb 2007 17:35 GMT
Are you talking about ms-access here?

Normally, you use the forms before update event:

me.MyDateTimeField = now()

Signature

Albert D. Kallal    (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com

aaron.kempf@gmail.com - 27 Feb 2007 21:22 GMT
eat sh.t fag I gave the correct answer first

On Feb 27, 9:35 am, "Albert D. Kallal" <PleaseNOOOsPAMmkal...@msn.com>
wrote:
> Are you talking about ms-access here?
>
[quoted text clipped - 6 lines]
> Edmonton, Alberta Canada
> pleaseNOOSpamKal...@msn.com
John W. Vinson - 27 Feb 2007 19:15 GMT
>Is there a way to get the time from the system clock and import it into a
>field in a table? I'm familiar with Access but new to SQL and do not know any
>Visual Basic. Thanks.

You can set the Default Value property of a table field to Time() to
get the current time (on December 30, 1899, the base of the date/time
system), or to Now() to get the current date and time, as of the
moment a new record is created.

You can also run an Update query updating a date/time field to Now();
or, using a Form, just type Ctrl-; (hold down the ctrl key and hit
semicolon) to fill in the time.

            John W. Vinson [MVP]
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.