smartslingaro
Registered User.
- Local time
- Today, 09:50
- Joined
- Aug 23, 2019
- Messages
- 17
I need a search bar on my form that will bring record in the form from the search bar. I don't code much, but watched a good video that seems to do what I want, and I followed it piece by piece, but keep getting an error :
This error occurs when an event has failed to run because the location of the logic for the event cannot be evaluated. For example, if the OnOpen property of a form is set to =[Field], this error occurs because a macro or event name is expected to run when the event occurs.
This is the code I used.
Private Sub cbogotorecord_AfterUpdate()
Dim rst As Object
Set rst = Me.RecordsetClone
rst.FindFirst "[Student ID]=" & Me.cbogotorecord.Value
Me.Bookmark = rst.Bookmark
End Sub
what am i doing wrong. ?
This error occurs when an event has failed to run because the location of the logic for the event cannot be evaluated. For example, if the OnOpen property of a form is set to =[Field], this error occurs because a macro or event name is expected to run when the event occurs.
This is the code I used.
Private Sub cbogotorecord_AfterUpdate()
Dim rst As Object
Set rst = Me.RecordsetClone
rst.FindFirst "[Student ID]=" & Me.cbogotorecord.Value
Me.Bookmark = rst.Bookmark
End Sub
what am i doing wrong. ?
Last edited: