Results 1 to 5 of 5
  1. #1
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131

    Duplicates in a form but not the query

    I was wondering what I am looking for. I have a form that is pulling data from a previous days transactions but most (not all) transactions are duplicated.

    I created this form a couple of years ago and have not modified it for about 3 months and nobody else has made any changes. When I look at the query that the form is pulling nothing is duplicated. When the Recordset type is Dynaset (Inconsistent Updates) I get 94 records, when I change it to Dynaset, then I get the correct count of records of 80.



    Thanks in advance.

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    What is the recordsource of the Form?
    What is the sql of the query?

    Please post the sql.

  3. #3
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131
    Here it is;

    SELECT Wires_cmad.*, Wires_cmad.Type, WCType.WC_Name, [Symbol] & " " & [MMIDDisplayName] AS SymbolMMID
    FROM Wires_cmad LEFT JOIN WCType ON Wires_cmad.WCType = WCType.WC_Type_ID
    WHERE (((IIf([Forms]![frm_Recap]![CheckSymbol]=True,[Symbol] Is Not Null Or [Symbol] Is Null,[Symbol]=[Forms]![frm_Recap]![SelectSymbol].[Value]))<>False) AND ((IIf([Forms]![frm_Recap]![CheckMMID]=True,[MMID] Is Not Null Or [MMID] Is Null,[MMID]=[Forms]![frm_Recap]![SelectMMID].[Value]))<>False) AND ((IIf([Forms]![frm_Recap]![CheckProducer]=True,[ProducerID] Is Not Null Or [ProducerID] Is Null,[ProducerID]=[Forms]![frm_Recap]![SelectProducer].[Value]))<>False) AND ((IIf([Forms]![frm_Recap]![CheckDate]=True,[TradeDate] Is Not Null Or [TradeDate] Is Null,[TradeDate]=[Forms]![frm_Recap]![SelectDate].[Value]))<>False) AND ((IIf([Forms]![frm_Recap]![CheckType]=True,[WCType] Is Not Null Or [WCType] Is Null,[WCType]=[Forms]![frm_Recap]![SelectType].[Value]))<>False));

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,848
    Why would you do this?

    Code:
    SELECT Wires_cmad.*, Wires_cmad.Type,....
    This Wires_cmad.* means all the fields in table wires_cmd , so there is no need to then itemize each field.
    One or the other not both.

    I'm not following your SQL and it means little to anyone unless they can see that [Forms]![frm_Recap] is open and the values that apply.

    Can you tell us in plain English what the query is trying to do?

  5. #5
    tcheck is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Nov 2010
    Posts
    131
    Sorry, I was going to take out the search clauses. I had a cluse for the Wires_cmad.type so that is why it's in the query.

    The query is just linking 2 tables togeather;

    SELECT Wires_cmad.*, Wires_cmad.Type, WCType.WC_Name
    FROM Wires_cmad LEFT JOIN WCType ON Wires_cmad.WCType = WCType.WC_Type_ID;

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

Similar Threads

  1. Need a count of a Duplicates Query
    By AudiA4_20T in forum Queries
    Replies: 1
    Last Post: 03-05-2013, 01:16 PM
  2. Find duplicates query to populate input form
    By kctalent in forum Queries
    Replies: 6
    Last Post: 08-22-2011, 03:12 PM
  3. Avoiding duplicates in query
    By theracer06 in forum Queries
    Replies: 1
    Last Post: 08-24-2010, 12:49 PM
  4. Duplicates in Query
    By Dega in forum Queries
    Replies: 1
    Last Post: 05-02-2010, 05:09 PM
  5. Find Duplicates Query
    By mulefeathers in forum Queries
    Replies: 13
    Last Post: 04-22-2010, 05:39 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