Solved

Search Field in Access

Posted on 2011-02-25
6
481 Views
Last Modified: 2012-05-11
I have a form setup for my contacts. At the top, i have a search field. When i start typing, it will search for the first field, "Contact Name". I have three columns on my search: "Contact Name", "Address" and "Business Phone". How do i setup my search field to look all three columns. For example, if i have a contact who's name is John, his address is 123 Test Drive and his phone number is 999-999-9999, from the search field i can start typing any of those things and it will find him. Does that make sense? How do i set that up in my search field. I attached a screenshot. Thanks!
Search-Fields.bmp
0
Comment
Question by:tols12
6 Comments
 

Author Comment

by:tols12
ID: 34982358
Here's what the query builder looks like for the search field. Can i just modify this?
Query-Builder.bmp
0
 
LVL 31

Accepted Solution

by:
Helen_Feddema earned 500 total points
ID: 34982390
You might want to consider an alternate approach, one combo box per search value.  See my Fancy Filters database for an example.  Here is a link for downloading it:
http://www.helenfeddema.com/Files/accarch129.zip

And here is a screen shot of the form:

Fancy-Filters-Form.jpg
0
 
LVL 2

Expert Comment

by:ComputerAidNZ
ID: 34982548
If you really MUST do what you are asking, the way I have accomplished this in the past is by creating a temporary table with one field holding contact name, phone and address data, either by concatenation, then wildcard search would find any string as entered in any part of the concatenated field.  If this approach is unfavourable, then (assuming your table has say 100 records in it), fill a field in a temporary table with data from contact name, then add data from address, then add data from phone - ending up with 300 records and then you search from this query and locate the record using the key field.  Complicated, but worked well for me in the past.
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 2

Expert Comment

by:ComputerAidNZ
ID: 34982569
continued...

Your query at the top of the form would be based upon the data from the temporary table created.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34982579
<No Points wanted>
IMHO, the "One combobox to rule them all" search design is over-rated.

It can just make searching more confusing for users, as they may not be sure if it is searching one field or more than one field.
If they can type 3 terms and it will search 3 fields?
Can they use Wild Cards?
If it searches with AND or OR logic.
...etc

Finally, it is just too much work (IMHO)  to design the interface...

JeffCoachman
0
 

Author Comment

by:tols12
ID: 34982629
Thanks for all the honesty boaq2000! I will probably just create three search fields. Thanks!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now