weird search result

kingsgambit

Registered User.
Local time
Today, 16:38
Joined
May 27, 2001
Messages
134
I have build a electronic library for my company.
But when I go to the search form a enter text for it to search by, either whole text or part text. It sometimes finds all the records matching the text or sometimes only shows some of the results.
I have attached to database, if somebody could have a quick look for me to see why it is doing this.
On the search form enter "the all" in the title it should return 200 plus records try a few times and see what happens.
 
You didn't attach the database (as far as I could see). What is the code you are using for the search mechanism?
 
Sorry about that hear is the database
 
the datbase is to big to attach, but this is what I use to search

Me.searchresult.RowSource

= "SELECT Bookrecord.RecordNo, Bookrecord.Title, Bookrecord.Edition FROM Bookrecord WHERE (((Bookrecord.Title) Like '*' & [Forms]![frmsearch]![Title] & '*'))ORDER BY Bookrecord.Title;"

Is there a better way?
 
Is there a better way?
Yes, using proper syntax! :p


Me.searchresult.RowSource="SELECT Bookrecord.RecordNo, Bookrecord.Title, Bookrecord.Edition FROM Bookrecord WHERE (((Bookrecord.Title) Like '*" & [Forms]![frmsearch]![Title] & "*')) ORDER BY Bookrecord.Title;"
 
Last edited:

Users who are viewing this thread

Back
Top Bottom