Hello everyone.
I have a form with 2 listboxes, 1 listbox filters the other. Now I want to add a doubleclick event on the filtered listbox that opens a form with the selected record in it. I currently have the following code:
But with this I get a type mismatch. I have selected the right column (5).
Thanks in advance for all your help.
I have a form with 2 listboxes, 1 listbox filters the other. Now I want to add a doubleclick event on the filtered listbox that opens a form with the selected record in it. I currently have the following code:
Code:
Private Sub lstNamen_DblClick(Cancel As Integer)
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmBas Registratie"
stLinkCriteria = "tblOverige.ID=" & "'" & Me!lstNamen.Column(5) & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
But with this I get a type mismatch. I have selected the right column (5).
Thanks in advance for all your help.