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

    How to Search Fields from Multi-Tables Form?

    Hi,

    I have home page using MS ACCESS DATABASE 2010, with search box below example:
    [IMG]file:///C:%5CUsers%5Cdeshtlel%5CAppData%5CLocal%5CTemp%5Cm sohtmlclip1%5C01%5Cclip_image001.png[/IMG]






    And I have four tables like below and will be add up until 10 or more. I'm trying to create a query to combine them all. At Home Page, when I search any field, all value of that specific field from all the tables needs to pop up, below are examples.

    Table 1


    a b c d e f


    Table 2
    a b c d e f

    Table 3

    a b c d e f

    Table 4

    a b c d e f

    I tried to watch tutorial video and search at any forums but could not find a way for any help. Will Highly Appreciated your help.

    Last edited by Yeisha2008; 07-18-2012 at 01:55 PM. Reason: Not yet finish, I accidentally post. Thanks!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Your image doesn't show, but you can use a UNION query to combine multiple tables:

    SELECT Field1, Field2
    FROM Table1
    UNION ALL
    SELECT Field1, Field2
    FROM Table2

    Note that having tables like that is often a sign of an unnormalized database, so I'd be curious what they contain.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Yeisha2008 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    8
    Quote Originally Posted by pbaldy View Post
    Your image doesn't show, but you can use a UNION query to combine multiple tables:

    SELECT Field1, Field2
    FROM Table1
    UNION ALL
    SELECT Field1, Field2
    FROM Table2

    Note that having tables like that is often a sign of an unnormalized database, so I'd be curious what they contain.

    Hi Thanks for trying to help. Please see attached image... trying to attached the dbase,
    but always error. For u to figure out. thanks!!!
    Attached Thumbnails Attached Thumbnails 2012-07-19_232758.png  

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Perhaps I'm dense, but that doesn't really clarify the question for me.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    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!

  6. #6
    uncletreetrunk is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jul 2012
    Posts
    72
    Yeisha,

    Try posting a stripped down version of your database so pbaldy can try to help. (He's really helpful!)

    Take out sensitive material and go to Office>Manage>Compact and Repair

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The sample db here demonstrates one method of doing that type of thing:

    http://www.baldyweb.com/BuildSQL.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

    Unhappy

    Quote Originally Posted by pbaldy View Post
    The sample db here demonstrates one method of doing that type of thing:

    http://www.baldyweb.com/BuildSQL.htm


    hi,

    kinda confusing with sql , i attached the sample database that im doing. pls help.

    Thanks!
    Attached Files Attached Files
    • File Type: zip 2.zip (29.7 KB, 8 views)

  9. #9
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    For starters, that's missing the subforms. In any case, I don't see that you've tried to incorporate that or any filtering method. If that method is too complicated for you, you can try basing the subform on a query that uses this technique:

    http://access.mvps.org/access/queries/qry0001.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  10. #10
    Yeisha2008 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    8
    Quote Originally Posted by pbaldy View Post
    For starters, that's missing the subforms. In any case, I don't see that you've tried to incorporate that or any filtering method. If that method is too complicated for you, you can try basing the subform on a query that uses this technique:

    http://access.mvps.org/access/queries/qry0001.htm

    Hi,

    Sorry I attached the wrong files .. Just really newbie here .. and i can just do simple database,
    just learn at youtube videos. But now is really complicated for me, 3 days already can't figure out what
    to do.

    Thanks really appreciate ur help!
    Attached Files Attached Files

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

Similar Threads

  1. Multi Field Combo search Form
    By Andyjones in forum Access
    Replies: 3
    Last Post: 03-12-2012, 02:13 PM
  2. Replies: 3
    Last Post: 03-10-2012, 06:15 PM
  3. Display Fields in Search Form
    By j2curtis64 in forum Forms
    Replies: 1
    Last Post: 07-18-2011, 01:37 PM
  4. 2 multi select list boxes on one search form
    By woodey2002 in forum Forms
    Replies: 2
    Last Post: 11-05-2010, 12:44 PM
  5. Replies: 1
    Last Post: 02-25-2009, 07:29 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