ClaraBarton
Registered User.
- Local time
- Today, 09:19
- Joined
- Oct 14, 2019
- Messages
- 605
I'm using MAJP's FindAsYouTypeListbox. I have a dialog popup where I select a record and then close and return to calling form. Wlhen the popup closes, the code goes to mListBox_Afterupdate which calls Unfilterlist. This code crashes the program:
Since I've already closed the popup, I don't know why this code is called. The following is how I close the form:
What am I doing wrong?
Code:
Private Sub unFilterList()
On Error GoTo errLable
Set mListbox.Recordset = mRsOriginalList
Exit Sub
Code:
Private Sub lstChild_AfterUpdate()
If IsNull(TempVars("ChildID")) Then 'empty TempVars
TempVars.Add "ChildID", 0
End If
TempVars("ChildID").Value = Me!lstChild.Value
DoCmd.Close acForm, Me.Name
End Sub