Try setting a form property in the init and then the activate calls the insert if the property is set, then resets the property.
>I have a form which I want to call with an 'Insert' parameter which tells it to insert a record immediately on loading the form.
>
>I have an Insert Method that carries out the necessary, but the Insert sets the focus of the first field, and this errors when I try and carry this out in the Init Method, example below:
>
>-----
>Procedure Init
>
>LPARAMETERS tcArg
>
>IF tcArg = 'Insert'
>thisForm.Insert()
>ENDIF
>
>-----
>It then errors and says that I can't set the focus from an Init method.
>
>Any ideas would be greatfully appreciated on another way I could get around this problem.
>
>Thanks
>Kev