Access 2007, Append Query, Field With Spaces

Anonymous
2014-02-13T16:16:50+00:00

This is less of a question and more a request that someone with the proper contacts can get a bug report in to the Access developer team.

There is an old bug in Access 2007 that still exists in fully updated versions of Office 2007. The problem is that when using the query designer to generate an append query against a table with spaces in field names brackets are improperly inserted into the designer where they do not belong. The brackets around field names should only be in the SQL text, not in the designer. I've attached 2 pictures that depict the problem. The first is the automatically generated field names by the design; New Query -> Select Table & Fields -> Append Query -> Select Table to Append To. If you select the field with brackets around it from the field name drop down the brackets are automatically removed and the append query is now functional. Additionally you can open the SQL view of the query, insert a space at the end of the query (or any modification) and go back to design view and the brackets are gone and the append query will now work.

I realize that using spaces in table names and field names goes against best practices and I personally don't do it however Access does allow it and people who have no idea about the pitfalls indeed add spaces into their table and field names and then wonder why their append queries under Access 2007 are broken. It would be superb if sometime in 2014 we could finally get a patch for this 7 year old software that corrects this long standing problem with very basic functionality in the query designer.

Wrong (generated by access):

Right:

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. ScottGem 68,775 Reputation points Volunteer Moderator
    2014-02-13T17:55:17+00:00

    Thanks for reporting it, but I'm not going to bother to pass it on. For three reasons:

    1. This is Access 2007 which is no longer available for purchase except from a 3rd party
    2. I just checked and this behavior doesn't exist in Access 2010
    3. Using spaces in object names is not recommended.
    0 comments No comments
  2. Anonymous
    2014-02-13T18:29:35+00:00

    Thanks for reporting it, but I'm not going to bother to pass it on. For three reasons:

    1. This is Access 2007 which is no longer available for purchase except from a 3rd party
    2. I just checked and this behavior doesn't exist in Access 2010
    3. Using spaces in object names is not recommended.

    It's still supported so I don't see what difference it makes if it's being sold by Microsoft or not? We're talking about some of the most basic of functionality in Access; it's not obscure or hard to reproduce.

    0 comments No comments
  3. ScottGem 68,775 Reputation points Volunteer Moderator
    2014-02-13T18:49:35+00:00

    As I said its fixed in later versions. So I doubt if they will expend effort to fix it. I was not able to duplicate it in Access 2010. I also disagree that this is the most basic of functionality. Its rather an obscure bug that can be worked around easily.

    0 comments No comments
  4. Anonymous
    2014-02-13T19:08:51+00:00

    Right, OK then. Thanks all the same.

    0 comments No comments