Over time I have added columns to the grid on one of my forms. And I have set columnorder to reflect the order that I want them to display as.
The problem is if I use a loop to reference the columns with the columns() collection, the columns get mixed up.
The code that I am using is:
ls_FieldList = ""
FOR i = 1 TO thisform.Grid.ColumnCount
ls_ControlSource = thisform.Grid.Columns(i).controlsource
ls_FieldList = ls_FieldList + ls_ControlSource + ","
Next
What I want is the field list to be in the same order as is displayed in the grid. (The user cant change the column orders)
Help!
The problem is if I use a loop to reference the columns with the columns() collection, the columns get mixed up.
The code that I am using is:
ls_FieldList = ""
FOR i = 1 TO thisform.Grid.ColumnCount
ls_ControlSource = thisform.Grid.Columns(i).controlsource
ls_FieldList = ls_FieldList + ls_ControlSource + ","
Next
What I want is the field list to be in the same order as is displayed in the grid. (The user cant change the column orders)
Help!