Results 1 to 5 of 5
  1. #1
    TheHarleygirl2005 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    34

    Append Query transfers ID rather than Name


    I have a form with an unbound combo box where I select a Course Name from a table. After I input all the info I have a Command button that I select to run the Append Query and transfer the information to another table. I have tried this with a combo box and a list box. No matter what I do, the course name shows up on the form, but when I append it to the table the CourseID shows up instead of the name. Can anyone help I can't figure out what I am doing wrong.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    You aren't doing anything wrong. That's how it should work, assuming CourseID is the primary key field.

    The CourseID is the actual value of the combobox.

    Why use APPEND query? Why not use a form/subform arrangement?
    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
    TheHarleygirl2005 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    34
    I set it up as an append query because I have a list of employees with a checkbox. I enter the course information (Date, Course, Course type, etc) then check off the people who attended that course and append it to another table where I use that information to generate reports. I would prefer the Course Name appends to the table, but I can work with the CourseID. Just thought I would ask to see if it was possible to change.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    It is possible. Reference the combobox column that has the course name. Column index begins with 0.

    Me.combobox.Column(1)

    Are you duplicating data? Should retrieve related data in query that joins tables, not replicate the data.
    If CourseName is the saved value then it should be the primary key.
    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
    TheHarleygirl2005 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    34
    Thanks, that's what needed.

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

Similar Threads

  1. Replies: 1
    Last Post: 10-06-2011, 08:37 AM
  2. Append Query
    By waqas in forum Queries
    Replies: 5
    Last Post: 09-02-2011, 11:22 AM
  3. Replies: 7
    Last Post: 07-21-2011, 01:01 PM
  4. Record of staff transfers
    By coffeeking in forum Access
    Replies: 1
    Last Post: 11-16-2010, 11:17 PM
  5. Append query won't append
    By yelkenli in forum Queries
    Replies: 5
    Last Post: 02-12-2010, 11:19 AM

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