Calculated Field

  • Thread starter Thread starter Duane
  • Start date Start date
D

Duane

I have a combo box that has a list of years, i.e. 2008, 2009, 2010, etc.
What I would like to do is have the calulated field to display the first day
of the year after the combo box updates.

Is this possible?

Thanks in advance.
 
You can use the DateSerial function to generate that date in the combo box's
AfterUpdate event. Something like:

Private Sub cboYear_AfterUpdate()

Me.SomeTextbox = DateSerial(Me.cboYear, 1, 1)

End Sub
 
Thanks Doug.

Much arppreciated

Douglas J. Steele said:
You can use the DateSerial function to generate that date in the combo
box's AfterUpdate event. Something like:

Private Sub cboYear_AfterUpdate()

Me.SomeTextbox = DateSerial(Me.cboYear, 1, 1)

End Sub
 
Back
Top