Search ('Find' command button) on database
Posted on 1998-08-05
I am currently taking a class. My assignment was to create a program using data controls and a database.
When the program is running, I need to have the capability to press the "Find" command button and have a search
done on the data base that I created. Here is my example that is not working... Please tell me what I am doing wrong.
Private Sub cmdFind_Click()
prompt$ = "Please enter the book title."
'To do a title search
SearchStr$ = InputBox(prompt$, "Book Search")
If datBooks.Recordset.NoMatch Then
MsgBox ("Sorry buddy, your out of luck.")