S
Stephen
I have a form with a few subforms. On the top of the form, there is a simple
combo box which when the user selects teh vale, teh form moves to the
selected record in the table.
Code is as follows:
Private Sub SearchField_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[AssociationID] = " & Str(Nz(Me![SearchField], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
The problem I have is that when the users selects the Association for teh
first time, it works great. However, when teh user selects anothe
Association, the form seems to go through an endless search and then
locks/freezes the form. The form flickers slightly as if there is some
endless looop/update process going on the background.
Is there a need to set teh recordset to null or something like that after
the search is completed? Any suggestions on what to do and how to address
this?
-Stephen
combo box which when the user selects teh vale, teh form moves to the
selected record in the table.
Code is as follows:
Private Sub SearchField_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[AssociationID] = " & Str(Nz(Me![SearchField], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
The problem I have is that when the users selects the Association for teh
first time, it works great. However, when teh user selects anothe
Association, the form seems to go through an endless search and then
locks/freezes the form. The form flickers slightly as if there is some
endless looop/update process going on the background.
Is there a need to set teh recordset to null or something like that after
the search is completed? Any suggestions on what to do and how to address
this?
-Stephen