Time/date stamp

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

Guest

I have a form to display all of my tasks. When a task is complete there is a
check box on the form that you can check indicating the task was complete.
Is there a way to have a time/date or just a date stamp that would input the
date the check was clicked?

What I would like to accomplish is when I run my completed task report I
will know when a certain task was completed.

Thank you
Mike
 
You will need a DateTime field in your table. Your checkbox can perform a
SetValue on the DateTime field using an Event or macro.
 
I have a form to display all of my tasks. When a task is complete there is a
check box on the form that you can check indicating the task was complete.
Is there a way to have a time/date or just a date stamp that would input the
date the check was clicked?

What I would like to accomplish is when I run my completed task report I
will know when a certain task was completed.

Sure; add a Date/Time field to your table (call it TimeCompleted say).
On the AfterUpdate event of the checkbox invoke the code builder and
put in code like

Private Sub chkCompleted_AfterUpdate()
If chkCompleted = True Then
Me!TimeCompleted = Now
End If
End Sub

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