Results 1 to 5 of 5
  1. #1
    botts121 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2009
    Posts
    19

    How can I search multiple tables?

    I have a database that has numerous tables in it. Within each table there are Home Phone # Fields. I want to be able to open a form, search for a phone number that could be in any of those tables and then have it tell me if the phone number exists or not but not display the phone number.

    Does anyone have any idea as to how to do this?



    Thank you in advance,

    Matt

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Just create a Public Function in a standard module that does the work for you. Your question suggests you may have a normalization issue as well.

  3. #3
    botts121 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2009
    Posts
    19
    how do I go about adding that public function to the module? and what do you mean by normalization?

    Thanks,

    Matt

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    We'll start with normalization. Here's an article from Microsoft on the subject. Google knows where there are tons more. As for a Global Function, have you ever written any VBA code? I use DAO for a table reference library. What do you use? What are the exact names of the tables?

  5. #5
    alcoool is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2009
    Posts
    10
    or you ca design a query for every table and display them in a form

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

Similar Threads

  1. Search for multiple records
    By Blake in forum Queries
    Replies: 1
    Last Post: 08-23-2013, 03:17 AM
  2. From with multiple tables
    By Darth_Katarn in forum Access
    Replies: 1
    Last Post: 09-23-2009, 08:17 AM
  3. Replies: 1
    Last Post: 02-25-2009, 07:29 PM
  4. using COUNT for multiple tables
    By kwalt in forum Programming
    Replies: 1
    Last Post: 02-17-2009, 04:05 PM
  5. using COUNT for multiple tables
    By kwalt in forum Queries
    Replies: 0
    Last Post: 02-17-2009, 03:06 PM

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