Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set field to Now()

Status
Not open for further replies.

shepkrm

Programmer
Jul 29, 2004
38
US
Hello,

I've been trying to find how to do this online to no avail...

I have a form with a checkbox on it. When a user clicks the checkbox, I would like the date field on the form (cert date) to be set to Now(). I would also like to make the form read only.

I tried:
Private Sub Cert_Click()

set [cert date] = Now()
Form.RecordsetType = snapshot

End Sub

...but it threw an error.

Any ideas?

Thank you!!!
Becky
 
Code:
Me![Cert date] = Now()
docmd.RunCommand acCmdSaveRecord
Me.RecordsetType = 2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top