今天在弄vs 2005 + access 时,突然冒出,之前都好好的
[color=red]
解决方法:
[color=darkred] 设置表student 的 sno 指定默认值为0就可以了,或者自增编号。即可[/color]
[color=red]
Server Error in '/' Application.
--------------------------------------------------------------------------------
由于其 Required 属性设置为真(True),字段' student.sno' 不能包含 Null 值。在此字段中输入一个数值。
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: 由于其 Required 属性设置为真(True),字段 'student.sno' ' 不能包含 Null 值。在此字段中输入一个数值。
Source Error: [/color]解决方法:
[color=darkred] 设置表student 的 sno 指定默认值为0就可以了,或者自增编号。即可[/color]
本文介绍了一个在使用VS2005结合Access时遇到的问题:字段'student.sno'不能包含空值的错误提示及解决办法。通过设置默认值或自增编号可以有效解决该问题。
1万+

被折叠的 条评论
为什么被折叠?



