>I have a form with 2 containers. Container2 has Grid1 on it and is not visible. With Container1 visible, I click on a command button on Container1. Some code executes. The last few lines read:
> Thisform.Container1.visible = .f.
> Thisform.Container2.Grid1.visible = .t.
> Thisform.Container2.Grid1.Column2.setfocus
>The last line bombs with "Unknown member Column2"
>If I put those same 3 lines of code on the form (not on a container), the code executes fine.
>What am I missing?
>
>Thanks.
Ken,
2 thoughts, do you need to make Container2 visible and does it make a difference in you set Container1 invisible after the setfocus?
Caroline