今天在弄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]