Results 1 to 4 of 4
  1. #1
    lwoods is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2011
    Posts
    2

    Access does not build correct APPEND query

    Access 2007: Created an APPEND query where column names have embedded blanks. Access builds an INSERT (...) with a SELECT for the values of the input table BUT builds the SELECT fields incorrectly. Instead of the SELECT looking like this: SELECT [inputtable].[col1],[inputtable].[col2],.... it does not add the brackets around the table name so it looks like this: SELECT inputtable.[col1],inputtable.[col2],..... If I add the brackets by going to SQL view then it works. The problem is that I have 35 columns so this gets a little time consuming, particularly since I have to use a magnifying glass to view the SQL statement!

    Anyone seen this problem...and have a solution?

    TIA

  2. #2
    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,726
    I don't have Acc2007. However, if you are building an Append query with 35 columns, with field names containing spaces, I would recommend you read the 10 commandments of Access at http://www.access-programmers.co.uk/...d.php?t=172363

  3. #3
    lwoods is offline Novice
    Windows Vista Access 2007
    Join Date
    May 2011
    Posts
    2
    Quote Originally Posted by orange View Post
    I don't have Acc2007. However, if you are building an Append query with 35 columns, with field names containing spaces, I would recommend you read the 10 commandments of Access at http://www.access-programmers.co.uk/...d.php?t=172363
    Either give me an answer or don't respond. This is not a database that I designed but one that that I was asked to work on.

    Do you have an answer or are you just going to be a wise-ass? Or, don't you even understand the question?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2007
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I do have Access2007 and no don't know why that happened. I just built an APPEND and it did fine. Can't replicate issue, can't offer solution.

    I don't think Orange intended to be wiseass, offered what information could with circumstances. Didn't know you were dealing with someone else's mess. The guildelines are still worth being aware of. In future I suggest you graciously accept information offered. Someone took time to read your post and make attempt, we aren't here for the fame and fortune! If the reply doesn't resolve your issue, simply say so and offer more info or move on.

    I also wonder about an APPEND with 35 fields. Where is this new data coming from?

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

Similar Threads

  1. Access Query build
    By zarfx4 in forum Access
    Replies: 3
    Last Post: 04-08-2010, 09:53 AM
  2. Build Query from cmdButton
    By thart21 in forum Forms
    Replies: 1
    Last Post: 03-12-2010, 09:43 AM
  3. Access append query
    By antoniorossano in forum Queries
    Replies: 1
    Last Post: 08-26-2009, 01:17 PM
  4. Hellp with Query Build
    By zarfx4 in forum Queries
    Replies: 0
    Last Post: 05-28-2009, 08:21 AM
  5. Can access build a exe file?
    By jianwei87 in forum Programming
    Replies: 1
    Last Post: 08-04-2008, 06:48 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