J
JamesJ
I'm using the following code to 'sync' a row selection of a list box
with other control(s) on the same form:
Private Sub ctlList_AfterUpdate()
Dim rst As DAO.Recordset
If Not IsNull(Me.ctlList) Then
Set rst = Me.RecordsetClone
rst.FindFirst "DvdMovieID=" & Me!ctlList
If rst.NoMatch Then
MsgBox "Not found"
Else
Me.Bookmark = rst.Bookmark
End If
Set rst = Nothing
End If
End Sub
Seems when I select a row in the list box the form 'blinks'. That is to say
for
a split second the data disappears and reappears.
Was wondering if there was a way to avoid this 'blinking' with an
alternative
way of accomplishing the task? The code works fine except for that anomaly.
Thanks,
James
with other control(s) on the same form:
Private Sub ctlList_AfterUpdate()
Dim rst As DAO.Recordset
If Not IsNull(Me.ctlList) Then
Set rst = Me.RecordsetClone
rst.FindFirst "DvdMovieID=" & Me!ctlList
If rst.NoMatch Then
MsgBox "Not found"
Else
Me.Bookmark = rst.Bookmark
End If
Set rst = Nothing
End If
End Sub
Seems when I select a row in the list box the form 'blinks'. That is to say
for
a split second the data disappears and reappears.
Was wondering if there was a way to avoid this 'blinking' with an
alternative
way of accomplishing the task? The code works fine except for that anomaly.
Thanks,
James