Dear All
I have and application that retreives data based on a freeform query, therefore the number of columns returned varies depending upon the query.
I would like to adjust the number of columns depending upon the query.
I.e.
When running the application, a compile error is generated at the .col = iIndex line
Jason Thomas
AssetCenter Consultant
Jason Thomas Consultancy Limited
I have and application that retreives data based on a freeform query, therefore the number of columns returned varies depending upon the query.
I would like to adjust the number of columns depending upon the query.
I.e.
Code:
iCounter = (No of Columns)
MainFrm.Datagrid.cols = iCounter
' Populate the headers information
For iIndex = o to iCounter
With MainFrm.Datagrid
.Col = iIndex
.Row = 0
.Text = "<<Some text goes here>>"
End With
Next iIndex
When running the application, a compile error is generated at the .col = iIndex line
Jason Thomas
AssetCenter Consultant
Jason Thomas Consultancy Limited