Auto insert date & time on a form

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

Guest

I am sort of new with this.....

I am creating a data input form and I want to capture the date&time the new
record was entered. What would be the best way to do this.

I have created a date&time (general) field in the table

Thanks All
Chomp
 
The said:
I am sort of new with this.....

I am creating a data input form and I want to capture the date&time the new
record was entered. What would be the best way to do this.

I have created a date&time (general) field in the table


Set the field's DefaultValue property to Now()
 
For date and time:

txtDate.Text = Now()

For just the date:

txtDate.Text = Date()
 
Thank you very much Sandy & Marshall. This works like a charm

Regards

Chomp
 
Sandy said:
For date and time:

txtDate.Text = Now()

For just the date:

txtDate.Text = Date()


Sandy, your VB is showing ;-)

In Access, if any code was needed, it would be the Value
property.
 

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