Results 1 to 5 of 5
  1. #1
    Lounger
    Join Date
    Aug 2001
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    append query (version 2000)

    I have created a combo box on a form. When the item is selected from the combo box - it updates several fields on my form. I want to next write only those things now showing (my selected item from the combo list along with the updated fields) to a new table by way of an append query. However, when I have the form do this step it wants to append all the records of the old table into my table instead of just the items I selected. I know that my joined properties are incorrect on my table. But I'm not sure how to get it to do what I am asking since the joined properties do not appear to give me this option? Please help? <img src=/S/help.gif border=0 alt=help width=23 height=15>

  2. #2
    Star Lounger
    Join Date
    Dec 2001
    Location
    Fredensborg, Denmark
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: append query (version 2000)

    We need additional information. Please explain:
    1. <LI>Tell in plain words what your aim is (e.g. I want to add a new client to a table of clients)
      <LI>Describe the tables involved - primary keys and other major fields
      <LI>How are they joined?
      <LI>You say "append...... just the items I selected". Is it about records on a subform or a filtered main form?
      <LI>Show your append query

  3. #3
    Lounger
    Join Date
    Aug 2001
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: append query (version 2000)

    1.2. - We create new items a couple of times a year. These new items are often made up of parts that are used on already existing items. I want to be able to enter a new item# and then be able to choose from my combo box a part# that will make up this item. when I bring up the part# I want it to retrieve all information regarding that part (who makes it, how may we have on hand ...) After all this information is displayed on the screen. I want to have all this information saved onto a new table.

    3. how are they joined? In the relationship fields - the two tables were joined so one would basically copy to the other. But I do not want that to happen but in the relationships between tables. I do not see an option to append just one record.

    4. append -- append records from one table to the other table.

    5. I 'm not sure how to give you a copy of my append query

  4. #4
    3 Star Lounger
    Join Date
    Feb 2001
    Location
    NYC,USA,Earth
    Posts
    273
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: append query (version 2000)

    It's not a good idea to store the same information in more than one table in your database - unless you have a very good reason. Having the part number with the item number you should be able to retieve the other information from the parts table any time you want. It's OK to display the other information about each part on the form but why do you want to store all of that information again in a new table?

  5. #5
    Super Moderator
    Join Date
    Aug 2001
    Location
    Evergreen, CO, USA
    Posts
    6,623
    Thanks
    3
    Thanked 60 Times in 60 Posts

    Re: append query (version 2000)

    Hi Karen,

    It seems to me that you really need two tables, one for parts and one for items. If by chance they are really the same thing you could get along with one table using self joins through a linking table, but if each item always contains one or more parts then I would probably split things into two tables.

    Then you would need a third table with only two fields, an item ID and a part ID. Each record would indicate that a specific part was used by a specific item. In this structure you don't need to copy data from one table to another. To display the info you want, you simply create a subform on the main form that shows the parts that are used.

    As to how to post a query, the simplest way is to display the query design and then click the mode button to select the SQL view. From there you can copy and paste the SQL statement into a post. Hope this helps.
    Wendell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •