>Instead of using columns' indexes what about using names or controlsources ? * Set focus to myName field
>with thisform.myGrid
>for ix = 1 to .columncount
> if upper(.columns(ix).controlsource) = ;
> upper(.recordsource+".myName")
> .columns(ix).setfocus()
> endif
>endfor Cetin
That's a good idea! I've got it sussed now but would be good practice for future developments. I'm interested that you have all that clustered in a "With". I knew you could call methods as well as set properties but I didn't know you could have other bits of programming. Very interesting. I know of some code which could be made much easier...
Sarah
Sarah King
pcpropertymanager.com