I am trying to get a Listbox to open a diferent Form to the record selected by the listbox.
Here is the code I have to select the record on the Afterupdate:
Private Sub List6_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[number] = " & Str(Nz(Me![List6], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
How can I get the listbox to open a different Form to the record selected by the Listbox?
Thanks!
Here is the code I have to select the record on the Afterupdate:
Private Sub List6_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[number] = " & Str(Nz(Me![List6], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
How can I get the listbox to open a different Form to the record selected by the Listbox?
Thanks!