Results 1 to 4 of 4
  1. #1
    Don Webb is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    11

    Searching Multiple Tables


    Thanks to help from forum members, I have been able to learn a lot. However, I have an interesting assignment and need help. I have created a database for task lists. There are currently five tables. The tables all have a field labeled "Date Needed". I need to create a form that would search all tables and list any tasks due on the input date on a common form. Would appreciate any help anyone can give me.

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by Don Webb View Post
    Thanks to help from forum members, I have been able to learn a lot. However, I have an interesting assignment and need help. I have created a database for task lists. There are currently five tables. The tables all have a field labeled "Date Needed". I need to create a form that would search all tables and list any tasks due on the input date on a common form. Would appreciate any help anyone can give me.
    Need more info.

    What are the table structures?
    Are the tables related?
    What have you tried?

  3. #3
    Don Webb is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    11
    I have done nothing more than import five identically structured task lists from excel as tables. They all have the same fields. Category, Item, Date Needed and Date Completed. These are for events so the "Items" may be the same in each table. The only thing I have tried is using a "search" from the Allen Browne site. I had been able to adapt it on some of the other databases I have created.

  4. #4
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Quote Originally Posted by Don Webb View Post
    I have done nothing more than import five identically structured task lists from excel as tables. They all have the same fields. Category, Item, Date Needed and Date Completed. These are for events so the "Items" may be the same in each table. The only thing I have tried is using a "search" from the Allen Browne site. I had been able to adapt it on some of the other databases I have created.
    If the tables are identically structured, if would be better and easier if it was one table with an additional field to identify the task (or event).

    You could use a Union query to all the data from the 5 tables into one query, then search. but you wouldn't know what task
    (or event) the data returned was associated with.

    Create a form with the union query as the record source. In the header of the form, add an unbound text box and two buttons - one to search and one to clear the form. Enter a date in the text box, then press the button. The code behind the button should set a filter. The results would display in the detail section of the form. The 2nd button would clear the filter.

    See attached A2K mdb

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

Similar Threads

  1. Replies: 5
    Last Post: 12-23-2011, 12:03 AM
  2. Searching for values and making new tables
    By Chevlion42 in forum Programming
    Replies: 9
    Last Post: 10-10-2011, 11:55 AM
  3. Replies: 2
    Last Post: 06-26-2011, 06:59 AM
  4. Searching mutiple tables
    By mbolster in forum Access
    Replies: 8
    Last Post: 07-06-2010, 10:16 AM
  5. Replies: 2
    Last Post: 05-25-2010, 02:45 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