Hi,
I have this problem of having my recordset changing positions while i scroll the list box using up/down arrows.
Please help. This is how I setfocus to the list box...
How can I stop this from happenning.
Please help me.
I have this problem of having my recordset changing positions while i scroll the list box using up/down arrows.
Please help. This is how I setfocus to the list box...
Code:
With List1
.Clear
adoTmpRS.Open "select * from m_Ac order by ac_name", db, adOpenStatic, adLockReadOnly
For i = 1 To adoTmpRS.RecordCount
.AddItem adoTmpRS!ac_name
adoTmpRS.MoveNext
Next i
adoTmpRS.Close
.Text = grdDataGrid.Columns(ColIndex).Value
.Left = grdDataGrid.Columns(ColIndex).Left + 125
.Width = grdDataGrid.Columns(ColIndex).Width
.Top = grdDataGrid.Top + grdDataGrid.RowTop(grdDataGrid.Row) + grdDataGrid.RowHeight
.Visible = True
.SetFocus
End With
How can I stop this from happenning.
Please help me.