Results 1 to 2 of 2
  1. #1
    mmirandola is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    mt prospect, illinois
    Posts
    4

    Append Query Help

    I work for a wholesale textbook distributor that buys used books. Some of these books are in pretty bad condition and need to be rebound by an outside company for us. I setup a database that will help me formulate a list of books that I am going to send to this rebinding company. The process of formulating this list requires the following steps:
    1. I need to sort the books into various categories established by this rebinding company.
    A. There are 5 categories numbered 1, 2, 3, 4, 5.
    2. After sorting the books I need to find out if the books have any value to us for resale.
    A. I have a table in my database of all the books with value to us (Table Called Adopted Titles)
    B. I have a query setup that asks me to first enter a category, after entering the category I have a popup ask me to enter a book SKU number
    C. If the book is listed in my table (Adopted Titles) the query appends the following information to a separate table (Scan Table) for me (ISBN, Author, Title, Edition, Copyright Year, etc)
    I keep running into a problem with Access giving me an error message


    "Microsoft Office Access set 1 field(s) to Null due to a type conversion failure, and it didn't add 0 record(s) to the table due to key violations, 0 record(s) due to lock violations, and 0 record(s) due to validation rule violations.
    Do you want to run the acation query anyway?
    To ignore the error(s) and run the query, click Yes.
    For an explanation of the causes of the violations, click help."

    If I click Yes I can see the book information is appened to my scan table, if the book is listed in my adopted titles table however its not appending the category number (1, 2, 3, 4, or 5) that I entered.

    I attached some pictures to this that shows how my database is setup and how my tables are joined in my query. As you look my primary key is called CA, that is basically a sku number or my companies system assigned number that is unique for every item we sell.

    Please help!
    Attached Thumbnails Attached Thumbnails Macro.jpg   MessageBox.jpg   QueryDesignView.jpg   QuerySQLView.jpg  

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Too hard for me to analyze issue from pictures alone. Need to run and debug code. If you want to provide project, 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.

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. Replies: 7
    Last Post: 07-21-2011, 01:01 PM
  3. append query
    By w_kenny in forum Access
    Replies: 2
    Last Post: 08-24-2010, 05:48 AM
  4. Append query won't append
    By yelkenli in forum Queries
    Replies: 5
    Last Post: 02-12-2010, 11:19 AM
  5. Append Query
    By cotri in forum Queries
    Replies: 1
    Last Post: 01-28-2010, 08:52 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