You receive an error message when you add a record to a subform in an Access 2002 Project (291091)
The information in this article applies to:
This article was previously published under Q291091 Moderate: Requires basic macro, coding, and interoperability
skills.
This article applies only to a Microsoft Access project (.adp).
SYMPTOMS When you add a new record to a subform in a Microsoft
Access project (ADP), you receive the following error message:
The data was added to the database but the data won't be
displayed in the form because it doesn't satisfy the criteria in the underlying
record source. CAUSE This behavior occurs when all of the following conditions
are true:
- The back-end database is stored on Microsoft SQL Server
7.0.
- The RecordSource property of the subform is set to an SQL Select statement that
selects fields directly from the underlying table, for example,
SELECT * FROM <Products>
where <Products> is the name of a table in the
database. - The table has an Identity field set as its primary key.
RESOLUTION There are two possible workarounds for this problem. Set the RecordSource Property of the Subform to a Table or a View This behavior does not occur if the RecordSource property of the subform is set to the actual name of the
underlying table or to a view that selects the proper fields from the
underlying table. You can also set the RecordSource property to an SQL SELECT statement that selects all the fields
from a view that is based on the underlying table. Upgrade to Microsoft SQL Server 2000 This behavior does not occur if the database is stored on
Microsoft SQL Server 2000 (including SQL Server 2000 Desktop Engine). You can
avoid the problem by upgrading your SQL Server to Microsoft SQL Server
2000. For more information about the benefits of upgrading to
Microsoft SQL Server 2000, see the following Microsoft Web site: STATUSMicrosoft has confirmed that this is a
problem in Microsoft Access 2002.
Modification Type: | Major | Last Reviewed: | 3/9/2006 |
---|
Keywords: | kbtshoot kbprb kberrmsg kbpending KB291091 |
---|
|