with This.Parent.oleCalendar && this line generates the error .Month = Month(This.Value) .Day = Day(This.Value) .Year = Year(this.Value) endwith This.Parent.Value = This.ValueThe error is #1734, Property not found. Well, oleCalendar is an object that gives a "Could not be evaluated" message in the debugger. So I added the following code at the beginning of the SetValues() method:
if vartype(This.Parent.oleCalendar) <> "O" return endifGot the same error returned by the vartype() test. So I changed it to:
if type("This.Parent.oleCalendar") <> "O" return endifNow all is fine because the TYPE() function returns "U". Go figure. :)