Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


How to update current date and time in an databasefield

How to update current date and time in an databasefield

I update certain database fields with an ado connection
Set adoCon = Server.CreateObject("ADODB.Connection")
'Update the record in the recordset
rsUpdateEntry.Fields("Stts1") = Request.Form("Stts1")
rsUpdateEntry.Fields("Stts2") = Request.Form("Stts2")
That works fine.

Now I added the fields 'date' and 'time' to the (Access)database.
I want to update these fields with the (user-system) date and time - The update code below does not work

rsUpdateEntry.Fields("Dateact") = date()
rsUpdateEntry.Fields("Timeact") = time()

Thanks for help.

RE: How to update current date and time in an databasefield

Problem solved - I typed a typo in a field - sorry

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close