Hi folks,
I am trying to locate the code for a search control I once obtained back in the days of Access95.
As best as I can remember it, it was an input box on a single-record form which searched all records in the form's query, searching on one specific field. Suppose that specific field was called "surname"... The effect was that it searched the surname field of the form's query for text strings that started with the characters you typed into the input box, as you typed... So, if you typed a solitary "A" into the search box, your form (which displays one record at a time), would show the first alphabetically sorted record whose surname field started with "A". If you then typed "b", so that your search box now contained "Ab", the aphabetically-first record whose surname field starts with "Ab" would show (assuming there were any names starting with "Ab").
So, if you wanted to search for someone called, say, Smithson, you'd start typing that name into the search box. It's likely that by the time you had typed "Smi" your form would already be displaying a "Smith". However, if there were Smiths and Smithsons in your DB, you would have to continue spelling out "Smithson" before a Smithson would appear - which would probably be as soon as you had typed "Smiths" or "Smithso".
This search device also sorted your records alphabetically, as you typed.. So, if you typed, say, Br into the search box, the record returned in your form would be the first Surname starting with Br. For argument's sake, it might be 'Brackley'. If you then hit the 'next record' button, you might see, in succession, records whose surname field contained, Bradford, Brendon, Brintz, Bronson and Bruford. I'm not sure, but it may have been configured to a search on a secondary field too, which might have been, for example, your 'first name' field, so that hitting your 'next record button a number of times might return, successively: Alan Brown, Bob Brown, Charles Brown and Dave Brown, etc.
I found this search device to be extremely efficient way of searching, from within my main form, because it always found the sought-after record, using the minimum necessary number of keystrokes, and there was never any need to try again.
Does anyone remember the search device I am talking about? It was originally posted somewhere on the internet in the 1990s. Can anyone provide a link to the coding? I'm now using Access2000. I'm not sure if the original code would work in Access200 or not, but if I can locate the code, it might be easy to adjust it to suit Access2000...
Or perhaps someone knows of another, equally efficient search device for a form.
Many thanks!
Ally1205