I am using VB6 FE and an Access BE connecting using ado. I have a Flexgrid that is populated using a recordset. The user can enter selection criteria to retrieve data from the db. If the user enters a selection criteria that returns no results, then the no data is shown on the flexgrid, which is fine. But the next time results are returned the flexgrid starts behaving strangely. If I click on e.g row 5, the data from row 4 is displayed in text boxes I have on my form. Also the row clicked is not highlighted properly anymore. Everything works fine until an occasion when no results are returned. After that it goes all microsoft on me.
Thanks in advance for any help given.
Here is my code.
'Get Data
Set datTempRS = New Recordset
datTempRS.CursorLocation = adUseClient
datTempRS.Open sSQL, dfwConn, adOpenForwardOnly, adLockReadOnly
'Display in grid
Set FlexGrid.DataSource = datTempRS
Thanks in advance for any help given.
Here is my code.
'Get Data
Set datTempRS = New Recordset
datTempRS.CursorLocation = adUseClient
datTempRS.Open sSQL, dfwConn, adOpenForwardOnly, adLockReadOnly
'Display in grid
Set FlexGrid.DataSource = datTempRS