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
 

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

Back
Top