ACC2002: #Name Appears in Linked Table When Decimal Field Has Identity Set to Yes (282328)



The information in this article applies to:

  • Microsoft Access 2002

This article was previously published under Q282328
Novice: Requires knowledge of the user interface on single-user computers.

This article applies only to a Microsoft Access database (.mdb).

SYMPTOMS

When you view a linked SQL Server table that contains at least one field with a data type of Decimal and if that Decimal field has its Identity property set to Yes, the data in the table appears as #Name.

CAUSE

The regional settings of the operating system are using a comma as the decimal separator.

RESOLUTION

Create a Data Source Name (DSN) that does not use the values of the regional settings. In the DSN wizard, this option is:

Use regional settings when outputting currency, numbers, dates, and times.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Create the following table in the SQL Server sample database Pubs and name it tblTest.

    Column NameData TypeLengthAllow NullsIdentityPrimary Key
    colDecimaldecimal9<unchecked>YesYes
    colDescripvarchar50<checked>NoNo
  2. Add the following data to the tblTest table:

    colDecimalcolDescrip
    1Descrip1
    2Descrip2
    3Descrip3
  3. On the computer on which Access 2002 is running, open Control Panel, open the Regional Settings tool, and then on the Currency tab, assign a comma as the decimal separator.
  4. Create a Data Source Name (DSN) on the computer on which Access 2002 is running that points to the Pubs database on SQL Server. When you create the DSN, ensure that the Use regional settings when outputting currency, numbers, dates, and times check box is selected.
  5. Open any database, and then link the tblTest table by using the DSN that you created earlier.
  6. Open the linked table. Note that the data appears as #Name.

REFERENCES

For more information about regional settings, click Start, click Help, type Regional Settings in the Search box, and then press ENTER.

Modification Type:MajorLast Reviewed:11/6/2003
Keywords:kbbug kbnofix KB282328