OK im new to this so bear with me. I need to add a search function to my project. I need to input a value into a textbox, click a submit button and a screen needs to appear with the results
Ive got a the following code but i get errors :
Private Sub cmdsubmit_click()
'Declare local variables
Dim store As String
store = txtsearch.Text
mycriteria = "title =" & "'" & store & "'"
Data1.Recordset.FindFirst.store
If Data1.Recordset.NoMatch Then
Data1.Recordset.MoveFirst
MsgBox "Record not found", vbExclamation, "Error"
End If
End Sub
what am i missing here. The errri comes up on the "Data1.Recordset.FindFirst.store" line