Date stamp a combo box selection

  • Thread starter Thread starter al.redeye
  • Start date Start date
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
 
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
 
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
 
Back
Top