getting time from system clock and importing into field in access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Are you talking about ms-access here?

Normally, you use the forms before update event:

me.MyDateTimeField = now()
 
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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top