Hi,

I have this piece of code in a combo box.mouse down event to assign a date to a calendar:

If Not IsNull(Expiration_date) Then
Calendar9.Value = Expiration_date.Value
Else
Calendar9.Value = Date
End If

I am getting an error on the calendar9.value that says "You can not assign a value to this object"

I am useing the same code in other areas in the program and did not get this message.

any idea why?

thanks a lot.