Auto entry of a field based on another field.

G

Grace

I have a field on a form [Closedby]. This field is a
combo box that looks at a table containing a list of
names. Is there an easy way to have another field
[Dateclosed]automatically log a date/time when a value is
entered into [Closedby]?

Thank you.
 
S

SteveS

Grace,

Try:

Private Sub ClosedBy_AfterUpdate()
If IsNull(Me.ClosedBy) Then
Me.DateClosed = ""
Else
Me.DateClosed = Now()
End If
End Sub

HTH

Steve
 

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

Top