thisform.olecontrol1.objECT.Month=MONTH(DATE()) thisform.olecontrol1.objECT.Day=DAY(DATE()) thisform.olecontrol1.object.Year=YEAR(DATE())This code works in VFP 7 (I used it because of intellisense), but when I ran in form in VFP 6 I get the error message saying:
OLE error code 0x80020005: Type MismatchIt occurs on all three lines.