Results 1 to 2 of 2
  1. #1
    narendrabr is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    21

    Need aueries to return values

    Hi,

    I have two tables called Email and Code,



    I need query to return all emails that code field in code table with code field in email table.

    Attached the sample database.

    Also please provide the steps to where I should write queries as I am new to access.

    Thanks!
    Attached Files Attached Files

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    I'm not sure I understand exactly what you want for the result. If you want all e-mails from the e-mail table that have codes that exist in both the e-mail table and the code table, you would just create a new query that includes those two tables and join them via the code fields in both tables. To do this go to Create-->Query Design. When prompted, add the two tables. Click on the code field of the email table and drag it to the code field of the code table to make the join. Then add the fields you want the query to display in the lower grid of the design window.

    If that is not what you are after, you will have to explain a little further and perhaps provide an example of the output you hope to achieve with the query.

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

Similar Threads

  1. Replies: 7
    Last Post: 04-30-2012, 03:21 PM
  2. Query return 0 for null values
    By rachello89 in forum Access
    Replies: 4
    Last Post: 02-23-2012, 08:38 AM
  3. Return values from five days ago
    By reidn in forum Queries
    Replies: 3
    Last Post: 08-02-2011, 11:37 AM
  4. No return on Null values
    By forrestapi in forum Queries
    Replies: 4
    Last Post: 10-18-2010, 08:09 AM
  5. Return all values from two queries
    By matteu1 in forum Queries
    Replies: 0
    Last Post: 08-18-2009, 01:02 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