drewdrewdrew
Registered User.
- Local time
- Today, 05:17
- Joined
- Jul 3, 2014
- Messages
- 35
I have tried adding the Microsoft DAO 3.6 Object Library and I get "Error Loading DLL" and it doesn't stay ticked.
Well that's curious. How did it get through the rst declaration without complaint?I have tried adding the Microsoft DAO 3.6 Object Library and I get "Error Loading DLL" and it doesn't stay ticked.
Msgbox "Listbox value is: " & Me.question_list & vbNewline & "Type Name: " & TypeName(Me.question_list)
Private Sub question_list_AfterUpdate()
Dim rst As Object
' Get a copy of the form's record source
Set rst = Me.RecordsetClone
With rst
' Find the record
.FindFirst "[question_id] = " & CLng(Me.question_list)
' If there's a match set the bookmark of the form to that of the one we've just searched for
If .NoMatch = False Then
Me.Bookmark = .Bookmark
End If
End With
MsgBox "Listbox value is: " & Me.question_list.Value & vbNewLine & "Type Name: " & TypeName(Me.question_list.Value)
' Clean up
Set rst = Nothing
End Sub
Did you follow the link?