Information générale
Catégorie:
Gestionnaire d'écran & Écrans
John,
I stand corrected. I guess you are right about this.
Ranjit
>>You can assign recno() as your command buttons caption.
>>Note that this approach will not work if your table (the grid's rowsource) is
>
>Actually, this approach will not work because when the button is instanced, Recno() has a value. And.... that value is applied to the CommandButton. I say THE - because there is only one command button. Try setting sparse to .F. and run the form with the grid. Then, issue code to change the Caption Property of the CommandButton. They all change - because it is only one commandbutton - displayed for each record.
>
>If you just wanted to display a TextBox, or some other bound control that has it would work because of the nature of bound controls.
>
>Therefore, a combination of setting the Value Property of a TextBox to =Recno() and using DynamicCurrentControl() might work. The characteristics of the TextBox can be made to look like a button - gray backgound and so forth. Since the other rows won't be active , it is fairly transparent.
Précédent
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