General information
Category:
Forms & Form designer
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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only