Results 1 to 2 of 2
  1. #1
    miziri is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    80

    I have two fileds Number in Filed 1 not in field 2

    Hi,
    I have in table two filed A,b with number see below example
    A B


    1 41
    43 21
    21 11
    5 4
    22 11
    ------------
    Need quiry compare A with B show number I have in A not avaible in B result must be
    A
    1
    43
    5
    those number avaible in A,not avaible in B
    Thanks

  2. #2
    kimmer is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    100
    1. Make a new query.
    2. Add the table to the query two times.
    3. Create a join between FieldA of the original table and FieldB of the copy table.
    4. Change the join type to a left join to include all of the records in the original table.
    5. Add FieldA from the original table to the grid.
    6. Add FieldB from the copy table to the grid.
    7. Set criteria of FieldB to Is Null.
    8. Turn on Group By.
    Here is the SQL:
    Code:
    SELECT tblMyTable.FieldA, tblMyTable_1.FieldB
    FROM tblMyTable LEFT JOIN tblMyTable AS tblMyTable_1 ON tblMyTable.FieldA = tblMyTable_1.FieldB
    GROUP BY tblMyTable.FieldA, tblMyTable_1.FieldB
    HAVING (((tblMyTable_1.FieldB) Is Null));

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

Similar Threads

  1. format number filed to significant digits
    By stileguru in forum Reports
    Replies: 3
    Last Post: 08-13-2010, 01:26 PM
  2. Field displays number instead of value
    By rdueck in forum Reports
    Replies: 6
    Last Post: 02-25-2010, 08:19 PM
  3. Sum of a categorized filed
    By Costa in forum Reports
    Replies: 0
    Last Post: 02-24-2010, 07:34 AM
  4. How to Increment A Number Field
    By Advanced in forum Programming
    Replies: 3
    Last Post: 01-27-2010, 02:36 PM
  5. Replies: 0
    Last Post: 03-16-2006, 04:59 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