Results 1 to 4 of 4
  1. #1
    Join Date
    May 2008
    Posts
    2

    update query question

    I am new to this forum, but I am somewhat experienced in Access. I have been building a database in Access 2008 which basically takes parameters of devices (computer hardware) out of tables and builds all possible configurations based on the criterion I set based off those device parameters.



    I have 4 different append queries that need to stay separate based on the structure of the data and how I am doing my queries.

    What I want is to be able to add another computer platform, or hardware device, into my tables, be able to run my 4 queries, and have them add to my big configurations table only the query results that DONT have certain fields matching (6 to be exact are what I need to define a unique config). Obviously the append queries just make the table huge and have a ton of duplicate values. I want the affect of the append query without the duplicates.

    I realize this is a somewhat simple concept, but what would be the best/easiest way to implement this? I was thinking I could have 2 tables, one that has all my configs, and one that contains the output of the append queries, then have another query that left joins the master table with the one that has the output of the append queries. But that would make the table that has the output of the append queries just get HUGE over time and fill with duplicates....

    Any suggestions?

  2. #2
    Join Date
    May 2008
    Location
    North Charleston, SC
    Posts
    20
    I'm still new to access in particular, but would it be possible to create a composite primary key of the six fields to prevent duplicate entry?

  3. #3
    Join Date
    May 2008
    Posts
    2
    how do you go about creating that composite primary key?

  4. #4
    Join Date
    May 2008
    Location
    North Charleston, SC
    Posts
    20
    in your table design, you can Ctrl+click multiple fields and then click the Primary Key icon on the toolbar. I'm sure there are other ways to handle what you want to do that will give better performance, but this is the only way I can think of to do it in access. If it were in SQL then I would use a Stored Procedure to create temp tables, run your four queries and store the results in the temp tables, and then use SQL logic to insert rows from the temp table into the live configuration table based on your business rules. I don't think Access can do sprocs, however.

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

Similar Threads

  1. Update Query
    By Najeeb in forum Queries
    Replies: 1
    Last Post: 11-19-2015, 04:02 AM
  2. Update Query
    By GrnISSO in forum Queries
    Replies: 0
    Last Post: 06-15-2007, 05:41 PM
  3. Need help with an Update query ...
    By valkyry in forum Queries
    Replies: 0
    Last Post: 04-23-2007, 08:45 PM
  4. Need help with Update Query
    By starswinger007 in forum Queries
    Replies: 1
    Last Post: 02-22-2006, 08:44 PM
  5. Update Query
    By canadian1121 in forum Queries
    Replies: 1
    Last Post: 11-15-2005, 04:04 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