Information générale
Catégorie:
Codage, syntaxe et commandes
Duh. this is the wrong answer. I was thinking grids: you're thinking browse. Disregard.
>Try this in the click method of your Add Button
>
>Select MyTable
>Go Bottom
>Append Blank
>thisForm.Grid1.Column1.Text1.SetFocus()
>
>I don't know how you add a record, but calling the SetFocus method of the Text box or whatever control is in the colum you want to move the cursor to should do the job for you.
>
>>I have a BROWSE window (yes I know how evil they are but it is an older system and it does have them). When the client tabs or clicks to say the third column and then presses the ADD button, the code adds a new row to the table. But the focus is still on the third column of the new row. How do I get the focus to the first column (or any specific column) of the new row?
>>
>>Brenda
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement