Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop a list box from flickering

Status
Not open for further replies.

NeilT123

Technical User
Jan 6, 2005
302
GB
I have an unbound list box that I am using as a selection point for a data input form. On the left of the main form is the list box with a list of names and on the right is a subform which holds the relevant data.

When I select a name in the list box the subform updates but the list box then flickers as though it has been requeried. Is there any suggestions on how to stop the flickering.

The list box is unbound and the code behind it is

Code:
Private Sub QuickSearch_Click()
Application.Echo False
' clear any search data
Me.Search2 = ""
Me.Search3 = ""

' column numbering starts from 0
Me.Search2 = Me.QuickSearch.Column(1)

Me.frmIfFertAppln.Requery
Application.Echo True

End Sub

Thanks as always for any suggestions
 
A subtle change. The listbox no longer flickers but the sub form frmIfFertAppln now does

Code:
Private Sub QuickSearch_Click()

' column numbering starts from 0
Me.Search2 = Me.QuickSearch.Column(1)

DoEvents
Me.frmIfFertAppln.Requery
Me.frmIfFertAppln.Form.Recordset.MoveFirst

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top