Date stamp a combo box selection

A

al.redeye

I'd like to insert an automatic date stamp in a text box when a particular
selection is made in a combo box.

Many thanks
 
J

John W. Vinson

I'd like to insert an automatic date stamp in a text box when a particular
selection is made in a combo box.

Many thanks

Use some VBA code in the AfterUpdate event of the combo box, e.g.

Private Sub mycombo_AfterUpdate()
If Me!mycombo = "Particular Selection" Then
Me!txttimestamp = Date ' or Now to store date and time
End If
End Sub
 
A

al.redeye

That worked a treat.

Much appreciated


John W. Vinson said:
Use some VBA code in the AfterUpdate event of the combo box, e.g.

Private Sub mycombo_AfterUpdate()
If Me!mycombo = "Particular Selection" Then
Me!txttimestamp = Date ' or Now to store date and time
End If
End Sub
 

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