Hi the search members using Last Name and entering a letter (manually) returns all members with that letter somewhere in their last name instead of last names begining with that letter. How do fix this? Nick
I can see where that might be misconstrued, but I'm not sure that that is something that is broken...
If you use the search box, you are indicating that you are looking for something that contains that text. If you wanted to find all names that start with a given letter, why not just click on the letter in list of letters right below the box?
Having said that, it might be possible to MOD it to automatically assume you are searching from the start of the name unless you add some special character. Doing that is probably going to require a rather large chunk of code - well, large if you want to keep it secure - and its going to have to do some thorough checking to make sure no one does any funny RegEx stuff.
I'm not sure how fruitful it would be to go that way. If you are interested in learning more about RegEx (VBScript's Regular Expressions object), there are a few articles/references for it. (O'Riley has an entire book on it.)
Thank you for your reply. Unfortunately, if you click on the letters below the text box the search reverts to user name irrespective of which box is ticked, but it does at least search on the first letter. Is it possible to import part of that code into the search for last name I wonder? Nick
It might be possible. To be honest, I haven't really considered it. Usually I know part of the name I'm looking for so the current behavior is sufficient...