Timestamp in Microsoft Access

  • Thread starter Thread starter Guest
  • Start date Start date
"Timestamp" ... in what sense?

Where, and for what purpose? If you want to have the date/time a new record
is created, you don't even need a command button.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
I want to be able to have an employee click on the command button and have
that time saved on a report.
 
I want to be able to have an employee click on the command button and have
that time saved on a report.

You can't "save on a report" - a report is just a tool to display data in a
Table.

You can set the value of a field in a table to Now() in the Click event of a
button. Assuming that the button is on a form bound to the table, and that the
proper record (that employee's record...???) is selected, use code like

Private Sub cmdTimestamp_Click()
Me!timestampcontrol = Now
End Sub

using the actual name of the form control bound to the timestamp field in your
table.

John W. Vinson [MVP]
 
Me!txtYourTimeStampControl = Now()

(add this as code behind the command button to put the timestamp value in
the control on the form)

Regards

Jeff Boyce
Microsoft Office/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

Similar Threads

Can you decipher this timestamp? 4
Select Subquery Error 3
TimeStamp 2
Importing a timestamp 1
>> sql timestamp 4
timestamp handle 5
Windows Vista How to validify timestamp 0
Office 2000 programs will not open in Vista operating system 1

Back
Top