The information in this article applies to:
SYMPTOMS
When inserting a row into a SQL Data Source using dynasets, you may see
one of the following behaviors:
CAUSEOn the Update method for the Dynaset, the following SQL code is generated by Jet Engine used by both Microsoft Access and Visual Basic version 3.0:
For example, look at the schema definition shown in the More Information
section below. If the table definition is as in A, the Insert fails because
it is an attempt to insert NULL into a non-null column. If the table
definition is as in B, the Insert command inserts "bob" and Null into the
table -- bypassing the default of "Seattle" for CityTo correct the problem, the Jet Engine should construct the SQL Statement to enforce defaults:
This would correctly insert "bob" and "Seattle" into the Customer table.
STATUSMicrosoft has confirmed this to be a bug in Visual Basic version 3.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONExample to Reproduce ProblemThe following example demonstrates this incorrect behavior:
If the table definition for Customer is as in A, an attempt to
insert a new row into SQL Server fails with the following message
from SQL Server:
If the table definition for Customer is as in B, the row is
inserted into SQL Server, but the default has been bypassed. The
values "bob" and Null are inserted into the table
Additional query words: buglist3.00 3.00 Access JET default update
Keywords : |
Last Reviewed: September 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |