Results 1 to 6 of 6
  1. #1
    kcmiuser is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    26

    Queries, relationships and duplicate creation that I can't remove.


    Okay let me start by saying that I'm not an experienced access user, although I would like to be, but job duties don't permit me the time to really learn it. So there are a lot of areas that confound me, but I do use it occasionally to create small projects to make my department run a bit smoother. So the problem my having is as follows: I have two pass-through queries that are pulling data from a very large ERP database. I need to create a make table query that will use feels from both of these, the problem is now that I'm getting duplicates. The first query contains data that has to do with material requirements planning and action messages, I need all of the fields that are in this query for the make table; second query pulls inventory data but has a small amount of fields but these are necessary in the make table for creating parameters. I know I'm getting duplicates because I can see them in the make table record count and also see them visually, so do I have to create a relationship between these two queries in order to eliminate the duplicates without losing all of the message data from the first query-can you create relationships between queries or is that only for tables.. I can use any help anyone can give me because I'm in areas now that I just don't understand very well. Thank you

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    The join in the query relates records. Do these tables have a 1-to-many relationship?
    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
    kcmiuser is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    26
    Yes they do, table one (action messages) can have several for one part number, the part tables is all the individual parts(what I am getting from here is code fields that I will use later as parameters for filtering the messages by a code). Example, part 'fanmotor' can have code 'a5', but I can have several action messages for that part for different dates, so I will list part fan motor with all the action messages and corresponding dates pertaining to it. Now, I can have several parts with the same code, so then I can list all the parts for that code with all of there messages on a report. Would that mean a 1 to many relationship, this is an area of access I am a bit fogging about. Hope this helps. Thanks for your help

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Yes, that is 1-to-many and the cause of 'duplicate' records. What is needed for the 'parameters'? If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

  5. #5
    kcmiuser is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    26
    The end user will use parameters to select various codes for reports, this is the only way I can figure out how to get what I want, I am sure there are more methodologies, I am just too much of a newb . I will send this later today, maybe, depends on how bad my 'spring fever' gets this afternoon since it's a long weekend. If I don't please have a nice Memorial weekend and we will start again next week.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849

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

Similar Threads

  1. Remove duplicate but keep the latest record
    By Compufreak in forum SQL Server
    Replies: 2
    Last Post: 06-12-2013, 11:55 AM
  2. Replies: 11
    Last Post: 04-22-2013, 06:13 AM
  3. Replies: 1
    Last Post: 12-31-2012, 12:48 PM
  4. Remove Duplicate
    By rgparpaccessforums in forum Access
    Replies: 3
    Last Post: 04-24-2011, 07:24 PM
  5. Replies: 1
    Last Post: 11-10-2009, 03:12 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