Microsoft Knowledge Base Email Alertz

You receive an error message when you run a query that includes a field name that begins with a double-byte Arabic number in Access 2007 or Access 2003

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 932994 - Last Review: September 30, 2011 - Revision: 2.0

You receive an error message when you run a query in Microsoft Access because of a double-byte Arabic number

On This Page

SYMPTOMS

In Microsoft Access 2010, Microsoft Access 2007, or in Microsoft Office Access 2003, you experience one of the following symptoms:

Symptom 1

You receive an error message when you run a query that has a field name that begins with a double-byte arabic number. For example, if the field name contains two or more characters, such as "�PMonth", you receive the following error message:

Syntax error in query expression ' Table Name .�PMonth': Missing operator.
If the field name only contains one character, such as "1", you receive the following error message:

Invalid use of '.', '!', or '()' in query expression ' Table Name. '.
Note In Access 2003, this issue only occurs when you run the query on a Windows Vista-based computer.

Symptom 2

You use a table that contains some fields whose names begin with double-byte arabic numbers. Then, you create a query to select all the data for the field names that begin with double-byte arabic numbers. When you run this query, you receive the following error message:
Syntax error (missing operator) in query expression 'TableName.FieldName'.
Note The TableName placeholder represents the name of the table that you are querying. The FieldName placeholder represents the name of the field name that you are querying.

Note This issue may also occur for objects other than tables.

RESOLUTION

To resolve the issue that is described in Symptom 1, see Resolution 1.

To resolve the issue that is described in Symptom 2, see Resolution 2.

Resolution 1

To resolve this problem, enclose the field name in single-byte square brackets ([ ]). For example, change the field name from 1Month to [1 Month].

Resolution 2

To resolve this problem, use one of the following methods:

Method 1

  1. Change any field names that begin with double-byte arabic numbers so that they do not use double-byte arabic numbers.
  2. Create and then save a new query.

Method 2

  1. Create a new query that is based on the table. Name the new query Query1.
  2. Create a field that is named TableName.* to the query.

    Note Do not add any other fields except TableName.*.
  3. Save the new query.
  4. Use the new query to select the fields that you want.

MORE INFORMATION

Steps to reproduce the problem

  1. In Access, create a table.
  2. Define a field by using a name that begins with a double-byte Arabic number.
  3. Create a query that refers to the field in the table.
  4. Run the query.

APPLIES TO
  • Microsoft Office Access 2007
  • Microsoft Office Access 2003
  • Microsoft Access 2010
Keywords: 
kbharmony kberrmsg kbexpertiseinter kbtshoot kbprb KB932994
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate