Results 1 to 7 of 7
  1. #1
    Yeisha2008 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    8

    Unhappy Searching Fields at Search Box from Different Tables Form not working

    Hi,



    Not really good in data base access, however i assigned on this task. I need help to run this database.

    I have 4 tables (Table 1, Table 2, Table 3 and Table 4) with same field and will add up more tables with same field as well. How can I run my search box? Example Table below:

    Country Color Number Percentage Population

    America White 9 10% 0000
    Brazil White 18 8% 1111
    Zimbabwe Black 2 3% 2222

    If i will find Percentage of America at Search Box. All percentage of America From Table 1 to Table 4 will come up. Badly needed your help.

    Thanks

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    ??? I have no idea what you are asking. It sounds that you may have a database design issue.
    Why not tell us what your application is about, so we have some understanding of your situation? Then ask specific questions as necessary.

  3. #3
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    You can either use a Union Query to combine all the tables together, or you can use VBA to programattically search through each Table individually.

    Example Union Query:
    Code:
    SELECT 'Table 1' AS [TableName], [Country], [Color], [Number], [Percentage], [Population] FROM [Table 1] 
    UNION SELECT 'Table 2' AS [TableName], [Country], [Color], [Number], [Percentage], [Population] FROM [Table 2] 
    UNION SELECT 'Table 3' AS [TableName], [Country], [Color], [Number], [Percentage], [Population] FROM [Table 3] 
    UNION SELECT 'Table 4' AS [TableName], [Country], [Color], [Number], [Percentage], [Population] FROM [Table 4] 
    WHERE [Country]='America'
    Last edited by Rawb; 07-19-2012 at 08:53 AM. Reason: Whoops! Typos!

  4. #4
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    I agree with orange though. If all four Tables contain the same type of data, they should really be combined to just one.

  5. #5
    Yeisha2008 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    8
    Quote Originally Posted by Rawb View Post
    I agree with orange though. If all four Tables contain the same type of data, they should really be combined to just one.

    Hi Thanks for trying to help. @Rawb: Dunno how to use VBA
    @ Orange: Please see attached image... trying to attached the dbase,
    but always error.
    Attached Thumbnails Attached Thumbnails 2012-07-19_232758.png  

  6. #6
    Yeisha2008 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    8
    If i will multi search destination all their information will pop up on the table below from all tables.
    like if i will search Cayman Island, type and area codes. all information will pop up! Thanks so much!

  7. #7
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I have acc2003, so a acc2010 accdb is of no value to me. Others may be able to help.
    I still have no idea what you are trying to do.

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

Similar Threads

  1. How to Search Fields from Multi-Tables Form?
    By Yeisha2008 in forum Queries
    Replies: 9
    Last Post: 07-19-2012, 11:41 AM
  2. Replies: 5
    Last Post: 04-06-2012, 11:06 AM
  3. Search Button in a Form not Working
    By spideynok in forum Forms
    Replies: 30
    Last Post: 03-29-2012, 01:10 AM
  4. Replies: 3
    Last Post: 02-08-2011, 10:25 AM
  5. Searching mutiple tables
    By mbolster in forum Access
    Replies: 8
    Last Post: 07-06-2010, 10:16 AM

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