>I agree but users want when they enter some data button "save data" to be enabled :o(((( . By the way in VFP 6.0 there is no such a problem. I can not try Your suggestion because the project is not infront of me, but I'll try it first thing in the morning.
Borislav,
IIRC, there's was change between VFP6 and VFP7 in how textbox value is updated for entered data that VFP cannot evaluate as correct date. In VFP6 the Value property was set to empty date, in VFP7 and later it's undetermined. You can check if textbox's Value is a date to avoid this error.
thisform.Command1.Enabled = ;
TYPE("thisform.Date1.Text1.Value") = "D" ;
AND NOT EMPTY(thisform.Date1.Text1.Value) ;
AND NOT EMPTY(thisform.OsZp.Text1.Value)
--sb--