date and time

C

Christina

How can I input automatically into a table (via a form) the date and time of
a transaction.

Thanks
 
T

Tom van Stiphout

On Tue, 24 Feb 2009 19:59:01 -0800, Christina

In the form's BeforeInsert event write:
Me.myDateTimeField.Value = Now()
(of course you replace myObjectNames with yours)

You can also make Now() be the default value for your field, in table
design view.

-Tom.
Microsoft Access MVP
 
C

Christina

Thanks. Got it
Tom van Stiphout said:
On Tue, 24 Feb 2009 19:59:01 -0800, Christina

In the form's BeforeInsert event write:
Me.myDateTimeField.Value = Now()
(of course you replace myObjectNames with yours)

You can also make Now() be the default value for your field, in table
design view.

-Tom.
Microsoft Access 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

Top