Results 1 to 2 of 2
  1. #1
    SethG is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    15

    Modifying "Search" Query in Contacts Web Database Template

    Hello,



    I am using the Contacts Web Database template that you can download from Microsoft as a starting point for a staff roster that I am putting together for my company. There is a neat feature in the database that allows you to use a search box to find keywords in the databases contacts. What I want to do is to modify this so it helps my team better. Currently, the search will only look within certain fields such as "firstname", "lastname", "emailaddress", "jobtitle", etc. Searching across these fields is pretty pointless for our use. But the database comes with a separate table where you can enter "comments". I have converted this comments field to a "expertise" field and added another one called "responsibilities". These will basically contain keywords and short sentences that describe more about what an individual is working on.

    I have attached 3 images to help someone to understand what I am looking. Basically, there is a query (image 1), which combines values from various fields into a single field. The search function then searches this field. I want to change what is in this field (called "searchable"). The fields that I want added are in multiple tables. The first field is called "Comment" in the table 'Comments'; the second field is called "responsibilities" in the table 'responsibilities'; and the third field is called "biography" in the table 'contacts'. Can anyone help me to redesign this query to include these three fields from multiple tables?

    I have included screen shots of the macros behind the text box and search button that execute the search as well for reference.

    Thanks everyone,



    Click image for larger version. 

Name:	Contactsdb_searchable.jpg 
Views:	7 
Size:	69.8 KB 
ID:	19570Click image for larger version. 

Name:	Contactsdb_search.png 
Views:	7 
Size:	66.9 KB 
ID:	19571Click image for larger version. 

Name:	Contactsdb_search2.png 
Views:	7 
Size:	68.4 KB 
ID:	19572

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Would have to include those other tables in the query design and link them to Contacts. The result will likely be a non-editable dataset. Also, the contact info will likely be duplicated because I expect Contacts has 1-to-many relationship with the other tables.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 11
    Last Post: 06-18-2013, 07:48 AM
  2. Replies: 8
    Last Post: 03-05-2013, 01:20 PM
  3. Export "Query or Report" to a "Delimited Text File"
    By hawzmolly in forum Import/Export Data
    Replies: 3
    Last Post: 08-31-2012, 08:00 AM
  4. Replies: 2
    Last Post: 03-29-2012, 08:49 AM
  5. Modifying contacts search box
    By RemonKoybito in forum Programming
    Replies: 2
    Last Post: 06-03-2011, 09:23 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums