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]