Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hello Steven.
How come the following code always gives me the value of the first row in the grid no matter which row I am on?
Select drawlcttable
Seek(PadR(AllT(ThisForm.Grid1.Column1.Text1.Value),24)) Order pcloc
The problem here is that you are misunderstanding how the grid works. A grid is not a spreadsheet. There is only ever one row in the grid. The rest is done with smoke and mirrors.
If you need to access the data, you can just refere to the fields in the grid's recordSource. So if column 1 is bound to Field1 in the grid's RecordSOurce and the current row in the grid is the fourth row, refereing to < grid.RecordSource >.Field1 will give the value you want.
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