>
>>>Does anyone know how to set focus to a record that you append to a grid? I am using an Add button with APPEND BLANK and then myGrid.Setfocus(). >
>I usually just do an append blank and then setfocus to the grid, and I'm on the blank record. For a simple example:
>
>
append blank
>_screen.forms(1).grid1.setfocus()
>
>took me to the bottom of the grid (and the blank record).
>Is there something in how your tables are related that's complicating things?
Hi Nancy,
I have my tables and relations defined in the database container. When I add the tables to the data environment of the form, the relations are set automatically. They appear to be OK. My form is one-many-many and the relations and refreshes are working great. The only thing that does not seem to behave is the focus not being on the appended record in the grid. Any other suggestions would be appreciated.
Mystified in Toronto
Rene de Montbrun
Toronto