473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Producing a GOOGLE type SEARCH box in access 2007

In access 2007 I am trying to replicate a field on a form that works very similar to the way , for instance , the GOOGLE search box performs ie as soon as you type a letter it drops down a history box with the previous selections you have made and then decreases the options available the more letters that are input until you come the selection that you want and then you accept . I am assuming it is poss using either the combo or list function but as yet have not cracked it. would appreciate help if it is poss.

Ian
May 16 '10 #1
3 2898
Jim Doherty
897 Expert 512MB
@Ianstow
Welcome to Bytes :)

You can simulate this using a form textbox and a list underneath it or indeed a combobox if that were your choosing. The key areas to this are the 'On change' event to capture what it is you typing in and then perform a search of your existing data to return a logical set of data matching your entry.

One could get very sophisticated with this, if one was so minded like soundex and whatever other string semantics takes your fancy.

Have a look at this little demo I have attached which gives you an idea of adding records to a one field table from whatever it is you type into the search box.

The table with one field is set to primary key so by default it cannot accept duplicates. The code looks at each character you type and queries the database according to which characters are present. The list is populated using a dynamic SQL statement. You jump between the textbox and listbox using the pagedown and up down arrow keys. All the code is located 'behind the form' in the form module. It is quick and dirty but illustrates what it is I believe you are aiming for and it has some sample data in there to use

Happy coding :-)
Attached Files
File Type: zip SearchBox.zip (168.8 KB, 425 views)
May 17 '10 #2
Much appreciated . this is spot on for the req I need

many thanks

ian
May 17 '10 #3
Jim Doherty
897 Expert 512MB
@Ianstow
You're welcome :-) incidentally there is a dedicated Access form on this site but I will leave this thread where it is given it is answered

http://bytes.com/topic/access
May 17 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Wayne | last post by:
I downloaded the Office 2007 Beta today and have been clicking around Access and the other Office Apps. They all have clear type switched on despite the fact that I have it turned off in Windows. ...
49
by: Allen Browne | last post by:
If you are looking for opinon on what's useful in Access 2007, there's a new article at: http://allenbrowne.com/Access2007.html Covers what's good (useful features), what's mixed (good and bad),...
3
by: Michael | last post by:
I work with a highly programmed Access database (some 15,000 lines of VBA code, much of it automating data entry on forms -- and believe me, it's very tight code). In Access 97, 2000, 2002, and...
2
by: ARC | last post by:
Just curious if anyone is having issues with Acc 2007 once the number of objects and complexity increases? I have a fairly large app, with many linked tables, 100's of forms, queries, reports, and...
8
by: elias.farah | last post by:
Hello Everyone, I'm having some very weird behavior on a couple of Access forms. (Not all forms, just some of them). The forms have been working for years, under Access XP/2003 etc, and last...
0
by: raylopez99 | last post by:
10 years ago, the below was written (see very end, after my signature RL). What, if anything, has changed? I have Access 2003 and soon Access 2007 on a Windows XP Professional or Windows...
10
by: Lou O | last post by:
I have been using Access 2007 for a number of months and have successfully deployed ACCDR files on many client machines. The client machines have the "free" Access runtime version installed. I...
0
by: lyle fairfield | last post by:
For several years the ADO Provider for Internet Publishing has been available in Access for putting files on IIS websites and retrieving them. Public Sub TestADOInternetPublishingProvider() Dim...
9
by: prakashwadhwani | last post by:
Hi !! I'm about to develop a new project for a client. Should I go about it in Access 2003 or 2007 ? Purchasing it either for me or for my client is not a major consideration here ... what I'd...
2
by: JoeKid09 | last post by:
Hi Guys, I'm working on converting a large table with a field that has numeric values in text data type. When I do the conversion in Access automatically some records don't get converted. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.