ACC2002: Error Message: Start Position Is Before the Beginning or Past the End of the Rowset. No Rows Were Returned (287446)
The information in this article applies to:
This article was previously published under Q287446 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access project (.adp).
SYMPTOMS
When you copy or import a table in a Microsoft Access project (.adp), the new table is created, but no data is copied to the new table, and the primary key may not have been created. Depending on the size of the table, you may also receive the following error message:
Start position is before the beginning or past the end of the rowset. No rows were returned.
CAUSE
There are embedded spaces within one or more field names in the table that you are trying to copy or import.
In the SQL Distributed Management Objects (SQL-DMO) process used by Access, neither brackets ([]) nor quotation marks ("") are placed around field names in the underlying T-SQL statement used to create a primary key or to insert records into the new table. Spaces within field names cause the statement to fail because the syntax is incorrect. If there is a space in any field name in the table, the new table will be created, but the data will not be copied. Additionally, if any field that makes up the primary key contains an embedded space, the primary key will not be created.
The symptoms can occur if each of the following is true:
- You have the Microsoft SQL Server 2000 version of SQL-DMO installed on the client computer. SQL-DMO can be installed in several ways, including:
- Installing a version of SQL Server 2000 on the client computer, including SQL Server 2000 Desktop Edition.
- Installing the SQL Server 2000 Client Tools.
- You have embedded spaces in one or more field names in the table that is being copied or imported.
Note that the error can occur regardless of the SQL Server version used on the server computer that contains the data.
RESOLUTION
Use one of the following methods to work around the problem:
- Modify the table's design to remove spaces from all field names (recommended).
- Use a make-table query to create a new table. You must manually set the primary key on the new table after you run the query.
- Uninstall SQL Server 2000 from the client computer, including the shared file SQLDMO.dll. You must manually create the primary key field on the new tables after copying.
The first method listed is the only method that will enable Access to copy or import a table from the user interface without requiring the user to manually create the primary key afterward.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. REFERENCESFor more information about how to modify table design, click Microsoft Access Help on the Help menu, type about tables in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about make-table queries, click Microsoft Access Help on the Help menu, type about action queries in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 10/20/2003 |
---|
Keywords: | kbbug KbClientServer kberrmsg kbnofix KB287446 |
---|
|