Where are you putting this code?
>I have looked at the stuff inside an SCT file I downloaded and it has this in it:
>
>
>Caption = "Clear"
>Name = "Command2"
>PROCEDURE Click
>thisform.text1.value=""
>thisform.text2.value=""
>thisform.text3.value=""
>thisform.text4.value=""
>thisform.text5.value=""
>thisform.text6.value=""
>ENDPROC
>
>
>But trying that with my stuff in it only causes if/endif errors when trying to close the form...
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer