Results 1 to 11 of 11
  1. #1
    hanialbarni is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    7

    How to create a query to compare values if they match or not and produce report about it ?

    Hello


    Good morning

    Can someone explain to me how can I create a query to compare Processingnumber from table1 with Processingnumber from table 2 if they are match or not the values, same goes for Amtvalue from Table 1 with Table 2.
    Attached Thumbnails Attached Thumbnails Untitled.png  

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    Are those ID fields both autonumber type?

    Maybe you need a Find Unmatched query. There is a wizard.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    hanialbarni is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    7
    ID is Autonumbered
    Processingnumber is number
    Amtvalue is number

    Am checking the wizard but what do I need to choose from settings ?

  4. #4
    hanialbarni is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    7
    Ok I was playing with it and it worked for Table 1 without Matching Table 2.
    But what do I need is to show results if Table 1 = Table 2 values.

    How can I do that ?

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    How are these tables related?

    Are the ID fields autonumber type?

    Can you join them on the ProcessingNumber fields?

    You want to see only records where Amtvalue fields are equal?

    Build query that joins the tables and apply filter critera to one of the Amtalue fields, Table1: =[Table2].AmtValue
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    hanialbarni is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    7
    Yes the ID is autonumber type, I don't know how can I join them on processing number, I need to check

    Table1 Processingnumber if equal Table 2 Processingnumber

    Table1 AmtValue if equal Table 2 AmtValue

    If they are equal, it should produce a list or show the results of the ones that are equal which rows I mean.

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    Did you trying building the suggested query?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    hanialbarni is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    7
    Yes I did as you can see there is something wrong, do u have an idea why it shows that ? and how can I solve it ?
    Attached Thumbnails Attached Thumbnails Untitled2.png  

  9. #9
    hanialbarni is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    7
    I write the Criteria like this in Table 1 Amtvalue

    [Table1].[Amtvalue]=[Table2]![Amtvalue]

    The result is empty

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,959
    Make no sense to link on two autonumber fields. They are independently generated, neither has any relationship to the other.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  11. #11
    hanialbarni is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    7
    You were right after I removed the link and write the following criteria

    Table1.Amtvalue = Table2.Amtvalue

    it does work and show the correct results

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

Similar Threads

  1. How to produce single entry report?
    By basils57 in forum Access
    Replies: 2
    Last Post: 03-09-2013, 04:57 PM
  2. Produce report after appending records?
    By Astron2012 in forum Access
    Replies: 14
    Last Post: 02-20-2013, 08:40 AM
  3. delete query produce #deleted in all deleted values
    By learning_graccess in forum Queries
    Replies: 2
    Last Post: 03-31-2012, 07:20 AM
  4. Replies: 4
    Last Post: 01-30-2012, 08:32 AM
  5. Create Query to Compare Values
    By shannon9585 in forum Queries
    Replies: 4
    Last Post: 12-29-2010, 05:55 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