Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    see the query1 which gicu send. if you filter first year to 2021 then doc number 19 you will see each record has duplicate.
    Year Searching Doc number Transfer Subnumber Date of receivng
    2021 19 489/2020 1 15.01.2021
    2021 19 489/2020 1 15.01.2021



    something like this not to paste all duplicate records here.

  2. #17
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    I was looking at qryDelovodnikForumAll ?

    Perhaps try Select Distinct
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #18
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    Yes, SELECT DISTINCT (in Query1) should eliminate the duplicates.

    Code:
    SELECT DISTINCT qryDelovodnikForumAll.[Year Searching], qryDelovodnikForumAll.[Doc number], qryDelovodnikForumAll.Transfer, qryDelovodnikForumAll.Subnumber, qryDelovodnikForumAll.DateofReceivng
    FROM qryDelovodnikForumAll INNER JOIN [DelovodnikForum Query1] ON (qryDelovodnikForumAll.[Year Searching] = [DelovodnikForum Query1].[Year Searching]) AND (qryDelovodnikForumAll.[Doc number] = [DelovodnikForum Query1].[Doc number])
    ORDER BY qryDelovodnikForumAll.[Doc number], qryDelovodnikForumAll.Subnumber;
    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  4. #19
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    Yes you are right. they disappeared. now is fine. thanks again.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 21
    Last Post: 03-14-2016, 01:33 PM
  2. Filtering Master Records and Subform Child Records
    By Nerther in forum Programming
    Replies: 6
    Last Post: 10-01-2013, 05:24 PM
  3. Filtering Records Question
    By manic in forum Programming
    Replies: 5
    Last Post: 04-03-2012, 08:48 AM
  4. Filtering/Querying Records using Selection Screen
    By Jonny333 in forum Programming
    Replies: 1
    Last Post: 12-22-2011, 08:56 PM
  5. Filtering records with a combo box
    By joesmithjunior in forum Access
    Replies: 1
    Last Post: 12-18-2011, 03:17 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